Prefer bool literals rather than integers in boolean contexts
[folly.git] / folly / executors / CPUThreadPoolExecutor.cpp
index 3c50a29985bd41aa219229dc0d1854af731e07b8..a7c8520bfe93c605ace4445d0cb7ffb8590b2dcb 100644 (file)
@@ -113,7 +113,7 @@ void CPUThreadPoolExecutor::threadRun(std::shared_ptr<Thread> thread) {
   this->threadPoolHook_.registerThread();
 
   thread->startupBaton.post();
-  while (1) {
+  while (true) {
     auto task = taskQueue_->take();
     if (UNLIKELY(task.poison)) {
       CHECK(threadsToStop_-- > 0);