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
/
ThreadPoolExecutor.cpp
diff --git
a/folly/executors/ThreadPoolExecutor.cpp
b/folly/executors/ThreadPoolExecutor.cpp
index 84394db0059bd396cb2f68387a5a929c2d2685b9..bacf3c28f4842b3fc92402dd0757949d733083c2 100644
(file)
--- a/
folly/executors/ThreadPoolExecutor.cpp
+++ b/
folly/executors/ThreadPoolExecutor.cpp
@@
-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) {