summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-04-12 20:32:25 +0200
committerDavid Robillard <d@drobilla.net>2017-04-12 20:33:10 +0200
commit4bb2e216665c570d55422d5425eda78f04a7674d (patch)
treef260fc1d82ca84c2b91ad2a48732c5e905b3e421 /src
parent0c6f4b52f6705185108909294432c3b03ff391c6 (diff)
downloadingen-4bb2e216665c570d55422d5425eda78f04a7674d.tar.gz
ingen-4bb2e216665c570d55422d5425eda78f04a7674d.tar.bz2
ingen-4bb2e216665c570d55422d5425eda78f04a7674d.zip
Replace use of Glib::usleep with standard facilities
Diffstat (limited to 'src')
-rw-r--r--src/ingen/ingen.cpp6
1 files changed, 3 insertions, 3 deletions
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 <signal.h>
#include <stdlib.h>
+#include <chrono>
#include <iostream>
#include <memory>
#include <string>
#include <glibmm/thread.h>
-#include <glibmm/timer.h>
#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())