Seastar
High performance C++ framework for concurrent servers
|
If a sharded service inherits from this class, sharded::stop() will wait until all references to this service on each shard are released 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>
Public Member Functions | |
shared_ptr< T > | shared_from_this () noexcept |
shared_ptr< const T > | shared_from_this () const noexcept |
long | use_count () const noexcept |
Protected Member Functions | |
future | freed () noexcept |