From 4bb2e216665c570d55422d5425eda78f04a7674d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 12 Apr 2017 20:32:25 +0200 Subject: Replace use of Glib::usleep with standard facilities --- src/ingen/ingen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/ingen/ingen.cpp b/src/ingen/ingen.cpp index 5c0976f7..b6831a9c 100644 --- a/src/ingen/ingen.cpp +++ b/src/ingen/ingen.cpp @@ -17,12 +17,12 @@ #include #include +#include #include #include #include #include -#include #include "raul/Path.hpp" @@ -240,12 +240,12 @@ main(int argc, char** argv) } else if (world->engine()) { // Run engine main loop until interrupt while (world->engine()->main_iteration()) { - Glib::usleep(125000); // 1/8 second + this_thread::sleep_for(chrono::milliseconds(125)); } } // Sleep for a half second to allow event queues to drain - Glib::usleep(500000); + this_thread::sleep_for(chrono::milliseconds(500)); // Shut down if (world->engine()) -- cgit v1.2.1