Prefer bool literals rather than integers in boolean contexts
[folly.git] / folly / executors / ThreadPoolExecutor.cpp
index 84394db0059bd396cb2f68387a5a929c2d2685b9..bacf3c28f4842b3fc92402dd0757949d733083c2 100644 (file)
@@ -214,7 +214,7 @@ void ThreadPoolExecutor::StoppedThreadQueue::add(
 }
 
 ThreadPoolExecutor::ThreadPtr ThreadPoolExecutor::StoppedThreadQueue::take() {
-  while (1) {
+  while (true) {
     {
       std::lock_guard<std::mutex> guard(mutex_);
       if (queue_.size() > 0) {