Ensure curly-braces around control-flow
[folly.git] / folly / experimental / test / FlatCombiningPriorityQueueTest.cpp
index 0085f88cee1f1959ad1f6cfbf259bef8f29232a4..05650a12c5078fb94999ea5468fe668a072a9b06 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#include <folly/experimental/FlatCombiningPriorityQueue.h>
 #include <folly/Benchmark.h>
+#include <folly/experimental/FlatCombiningPriorityQueue.h>
 #include <folly/portability/GTest.h>
 #include <glog/logging.h>
 
@@ -129,14 +129,16 @@ static uint64_t run_once(PriorityQueue& pq, const Func& fn) {
   for (uint32_t tid = 0; tid < nthreads; ++tid) {
     threads[tid] = std::thread([&, tid] {
       started.fetch_add(1);
-      while (!start.load())
+      while (!start.load()) {
         /* nothing */;
+      }
       fn(tid);
     });
   }
 
-  while (started.load() < nthreads)
+  while (started.load() < nthreads) {
     /* nothing */;
+  }
   auto tbegin = std::chrono::steady_clock::now();
 
   // begin time measurement