| 11 | ThreadPoolManager* ThreadPoolManager::instance; |
| 12 | |
| 13 | ThreadPoolManager::ThreadPoolManager(unsigned int _max_threads, unsigned int flags) : flags(flags) |
| 14 | { |
| 15 | if (_max_threads == 0) { |
| 16 | _max_threads = 1; |
| 17 | } |
| 18 | |
| 19 | max_threads = _max_threads-1; |
| 20 | available_threads = max_threads; |
| 21 | pthread_mutex_init(&mp, NULL); |
| 22 | main_pthread = pthread_self(); |
| 23 | } |
| 24 | |
| 25 | |
| 26 | ThreadPool* ThreadPoolManager::newThreadPool(const std::string& name) |
nothing calls this directly
no outgoing calls
no test coverage detected