| 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); |