Seastar
High performance C++ framework for concurrent servers
|
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>
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 Attributes | |
std::function< void()> | _delete_cb |