| 117 | } |
| 118 | |
| 119 | int thread_pool::task_qlen() const |
| 120 | { |
| 121 | if (thr_pool_ == NULL) { |
| 122 | logger_error("start() not called yet!"); |
| 123 | return -1; |
| 124 | } |
| 125 | return acl_pthread_pool_qlen(thr_pool_); |
| 126 | } |
| 127 | |
| 128 | void thread_pool::thread_run(void* arg) |
| 129 | { |