Seastar
High performance C++ framework for concurrent servers
|
Anchor for polled registration. Iff the registered type is in some way none-persistent, use this as receiver of the reg and ensure it dies before the added value(s).
Use: uint64_t v = 0; registration r = add_polled_metric(v); ++r; <scope end, above dies>
#include <seastar/core/scollectd.hh>
Public Member Functions | |
registration (const type_instance_id &id) | |
registration (type_instance_id &&id) | |
registration (const registration &)=delete | |
registration (registration &&)=default | |
registration & | operator= (const registration &)=delete |
registration & | operator= (registration &&)=default |
void | unregister () |