diff options
Diffstat (limited to 'runtime/thread_pool.h')
-rw-r--r-- | runtime/thread_pool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/thread_pool.h b/runtime/thread_pool.h index 3462d5efbb..b9f185d5f9 100644 --- a/runtime/thread_pool.h +++ b/runtime/thread_pool.h @@ -76,7 +76,7 @@ class ThreadPool { // after running it, it is the caller's responsibility. void AddTask(Thread* self, Task* task); - ThreadPool(size_t num_threads); + explicit ThreadPool(size_t num_threads); virtual ~ThreadPool(); // Wait for all tasks currently on queue to get completed. @@ -161,7 +161,7 @@ class WorkStealingWorker : public ThreadPoolWorker { class WorkStealingThreadPool : public ThreadPool { public: - WorkStealingThreadPool(size_t num_threads); + explicit WorkStealingThreadPool(size_t num_threads); virtual ~WorkStealingThreadPool(); private: |