17class Context :
public ThreadLocalSingleton<Context> {
19 void init(Ring *ring, Runtime *runtime) {
32 Ring *ring() {
return ring_; }
34 Runtime *runtime() {
return runtime_; }
36 uint16_t next_bgid() {
return next_bgid_++; }
38 void set_cred_id(uint16_t
id) { cred_id_ = id; }
39 uint16_t cred_id() {
return cred_id_; }
42 Ring *ring_ =
nullptr;
43 Runtime *runtime_ =
nullptr;
44 uint16_t next_bgid_ = 0;
45 uint16_t cred_id_ = 0;
The event loop runtime for executing asynchronous.
Definition runtime.hpp:76
The main namespace for the Condy library.
Definition condy.hpp:28