From 76b1fcd26d23a9bf5ef5f3967565d09cd3febd27 Mon Sep 17 00:00:00 2001 From: Ryou Ezoe Date: Wed, 2 Mar 2016 18:55:16 +0900 Subject: [PATCH] cleanup --- main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index a9ee03e..6ebda58 100644 --- a/main.cpp +++ b/main.cpp @@ -32,7 +32,6 @@ void boost_song() ++x ; } std::this_thread::sleep_until( reset ) ; - } } @@ -55,8 +54,7 @@ void square_am_signal(float time, float frequency) while (high_resolution_clock::now() < end) { mid = start + period / 2 ; - auto reset = start + period ; - std::atomic x{0} ; + reset = start + period ; cv.notify_all() ; std::this_thread::sleep_until( reset ) ;