| 107 | } |
| 108 | |
| 109 | int thread_pool::threads_count() const |
| 110 | { |
| 111 | if (thr_pool_ == NULL) { |
| 112 | logger_error("start() not called yet!"); |
| 113 | return -1; |
| 114 | } |
| 115 | |
| 116 | return acl_pthread_pool_size(thr_pool_); |
| 117 | } |
| 118 | |
| 119 | int thread_pool::task_qlen() const |
| 120 | { |