19class Context :
public ThreadLocalSingleton<Context> {
21 void init(Runtime *runtime)
noexcept {
25 void reset() noexcept {
30 Runtime *runtime() noexcept {
return runtime_; }
32 uint16_t next_bgid() {
return bgid_pool_.allocate(); }
34 void recycle_bgid(uint16_t bgid)
noexcept { bgid_pool_.recycle(bgid); }
37 Runtime *runtime_ =
nullptr;
38 IdPool<uint16_t> bgid_pool_;
The event loop runtime for executing asynchronous.
The main namespace for the Condy library.
Internal utility classes and functions used by Condy.