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 79b57af..0557708 100644 --- a/runtime/thread_pool.h +++ b/runtime/thread_pool.h @@ -112,7 +112,7 @@ class ThreadPool { // get a task to run, blocks if there are no tasks left virtual Task* GetTask(Thread* self); - // Try to get a task, returning NULL if there is none available. + // Try to get a task, returning null if there is none available. Task* TryGetTask(Thread* self); Task* TryGetTaskLocked() EXCLUSIVE_LOCKS_REQUIRED(task_queue_lock_); @@ -166,7 +166,7 @@ class WorkStealingWorker : public ThreadPoolWorker { virtual ~WorkStealingWorker(); bool IsRunningTask() const { - return task_ != NULL; + return task_ != nullptr; } protected: |