[gardening] Use consistent spacing after if, for and while

This commit is contained in:
practicalswift
2017-04-13 16:37:32 +02:00
parent 65bcc8ff84
commit 40cf4d183d
13 changed files with 20 additions and 20 deletions

View File

@@ -27,7 +27,7 @@ class Pool {
public:
Pool() : Stop(false) {
for(size_t i = 0; i < NumThreads; ++i)
for (size_t i = 0; i < NumThreads; ++i)
Workers.emplace_back([this] {
while (true) {
std::function<void()> Task;
@@ -38,7 +38,7 @@ public:
return Stop || !Tasks.empty();
});
if(Stop && Tasks.empty()) {
if (Stop && Tasks.empty()) {
return;
}
@@ -70,7 +70,7 @@ public:
Stop = true;
}
Condition.notify_all();
for(auto &Worker : Workers) {
for (auto &Worker : Workers) {
Worker.join();
}
}