From edcf23e268b1ab792e09ff3755519db18ff12dc8 Mon Sep 17 00:00:00 2001 From: Victor Zarubkin Date: Sun, 2 Apr 2017 14:25:46 +0300 Subject: [PATCH] Amend last commit --- sample/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sample/main.cpp b/sample/main.cpp index 8c8f4f1..ff4040e 100644 --- a/sample/main.cpp +++ b/sample/main.cpp @@ -19,7 +19,7 @@ int MODELLING_STEPS = 1500; int RENDER_STEPS = 1500; int RESOURCE_LOADING_COUNT = 50; -#define SAMPLE_NETWORK_TEST +//#define SAMPLE_NETWORK_TEST void localSleep(int magic=200000) { @@ -227,7 +227,7 @@ int main(int argc, char* argv[]) cv.notify_all(); std::atomic_bool stop = ATOMIC_VAR_INIT(false); - auto ttt = std::thread([&stop]() + auto frame_time_printer_thread = std::thread([&stop]() { while (!stop.load(std::memory_order_acquire)) { @@ -243,7 +243,7 @@ int main(int argc, char* argv[]) for(auto& t : threads) t.join(); - ttt.join(); + frame_time_printer_thread.join(); auto end = std::chrono::system_clock::now(); auto elapsed =