Seastar
High performance C++ framework for concurrent servers
Public Member Functions | Protected Attributes | List of all members
seastar::async_sharded_service< T > Class Template Reference

Detailed Description

template<typename T>
class seastar::async_sharded_service< T >

If sharded service inherits from this class sharded::stop() will wait until all references to a service on each shard will disappear before returning. It is still service's own responsibility to track its references in asynchronous code by calling shared_from_this() and keeping returned smart pointer as long as object is in use.

#include <seastar/core/sharded.hh>

Inheritance diagram for seastar::async_sharded_service< T >:
seastar::enable_shared_from_this< T > seastar::shared_ptr_count_base

Public Member Functions

shared_ptr< T > shared_from_this ()
 
shared_ptr< const T > shared_from_this () const
 

Protected Attributes

std::function< void()> _delete_cb
 

The documentation for this class was generated from the following file: