MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / init

Method init

thread/thread-pool.h:73–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 static bool after_work_done(TPControl &ctrl);
72 static bool do_thread_join(TPControl* pCtrl);
73 void init(uint64_t stack_size)
74 {
75 set_ctor({this, &ctor});
76 set_dtor({this, &dtor});
77 m_reserved = (void*)stack_size;
78 }
79 ThreadPoolBase(uint32_t capacity, uint64_t stack_size) : B(capacity)
80 {
81 init(stack_size);

Callers 1

new_thread_poolMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected