From 9c148a86a205d2e295213f94fa0c8a0af2bc3506 Mon Sep 17 00:00:00 2001 From: qPCR4vir Date: Wed, 2 Mar 2016 15:29:38 +0100 Subject: [PATCH] Wait_or_not --- source/gui/wvl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/gui/wvl.cpp b/source/gui/wvl.cpp index 621e9c4c..0e7e4adc 100644 --- a/source/gui/wvl.cpp +++ b/source/gui/wvl.cpp @@ -18,7 +18,7 @@ #include -inline unsigned Wait(unsigned wait = 0) +inline unsigned Wait_or_not(unsigned wait = 0) { #ifdef NANA_AUTOMATIC_GUI_TESTING return wait; @@ -46,7 +46,7 @@ namespace nana f = []() {API::exit(); }; #endif - wait = Wait(wait); + wait = Wait_or_not(wait); std::cout << "Will wait " << wait << " sec...\n"; std::thread t([wait, &f, wait_end, fm]() @@ -57,7 +57,7 @@ namespace nana std::cout << "running... \n" ; f(); std::cout << "Done... \n"; - std::cout << "Now waiting anothers " << wait << " sec...\n"; + std::cout << "Now waiting anothers " << wait_end << " sec...\n"; std::this_thread::sleep_for(std::chrono::seconds{ wait_end } ); std::cout << "Done... \n"; if (fm)