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

Method new_thread_pool

thread/thread-pool.h:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 void join(TPControl* pCtrl);
50
51 static ThreadPoolBase* new_thread_pool(
52 uint32_t capacity, uint64_t stack_size = DEFAULT_STACK_SIZE)
53 {
54 auto p = B::new_identity_pool(capacity);
55 auto pool = (ThreadPoolBase*) p;
56 pool->init(stack_size);
57 return pool;
58 }
59
60 static void delete_thread_pool(ThreadPoolBase* p)
61 {

Callers

nothing calls this directly

Calls 2

new_identity_poolFunction · 0.50
initMethod · 0.45

Tested by

no test coverage detected