projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prefer bool literals rather than integers in boolean contexts
[folly.git]
/
folly
/
executors
/
CPUThreadPoolExecutor.cpp
diff --git
a/folly/executors/CPUThreadPoolExecutor.cpp
b/folly/executors/CPUThreadPoolExecutor.cpp
index 3c50a29985bd41aa219229dc0d1854af731e07b8..a7c8520bfe93c605ace4445d0cb7ffb8590b2dcb 100644
(file)
--- a/
folly/executors/CPUThreadPoolExecutor.cpp
+++ b/
folly/executors/CPUThreadPoolExecutor.cpp
@@
-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);