| 49 | } |
| 50 | |
| 51 | void ThreadPool::SetBackgroundThreads(int num) { |
| 52 | assert(num > 0); |
| 53 | MutexLock lock(&mutex_); |
| 54 | total_threads_limit_ = num; |
| 55 | } |
| 56 | |
| 57 | int64_t ThreadPool::Schedule(void (*function)(void*), void* arg, double priority, |
| 58 | int64_t wait_time_millisec) { |
no outgoing calls