| 86 | } |
| 87 | |
| 88 | bool thread_pool::run(thread_job* job) |
| 89 | { |
| 90 | if (job == NULL) { |
| 91 | logger_error("thr null!"); |
| 92 | return false; |
| 93 | } |
| 94 | |
| 95 | if (thr_pool_ == NULL) { |
| 96 | logger_error("start() not called yet!"); |
| 97 | return false; |
| 98 | } |
| 99 | |
| 100 | acl_pthread_pool_add(thr_pool_, thread_run, job); |
| 101 | return true; |
| 102 | } |
| 103 | |
| 104 | bool thread_pool::execute(thread_job* job) |
| 105 | { |
no outgoing calls
no test coverage detected