diff options
author | David Robillard <d@drobilla.net> | 2012-01-14 21:47:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-01-14 21:47:32 +0000 |
commit | a2701525891f69cc810ed370dd54ac76944b1d0b (patch) | |
tree | bd605803eb386ab992b2ec59ab0971cd62468d58 /src/ingen | |
parent | 692e851810156ce4bc4929ea803366c2fcb2ed94 (diff) | |
download | ingen-a2701525891f69cc810ed370dd54ac76944b1d0b.tar.gz ingen-a2701525891f69cc810ed370dd54ac76944b1d0b.tar.bz2 ingen-a2701525891f69cc810ed370dd54ac76944b1d0b.zip |
Replace some non-portable stuff with glib equivalents.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3947 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/ingen')
-rw-r--r-- | src/ingen/main.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ingen/main.cpp b/src/ingen/main.cpp index 4fd477d2..4e7ba923 100644 --- a/src/ingen/main.cpp +++ b/src/ingen/main.cpp @@ -17,7 +17,6 @@ #include <signal.h> #include <stdlib.h> -#include <time.h> #include <iostream> #include <string> @@ -27,6 +26,7 @@ #include <glibmm/convert.h> #include <glibmm/miscutils.h> #include <glibmm/thread.h> +#include <glibmm/timer.h> #include "raul/Configuration.hpp" #include "raul/Path.hpp" @@ -54,8 +54,6 @@ using namespace std; using namespace Raul; using namespace Ingen; -static const timespec main_rate = { 0, 125000000 }; // 1/8 second - Ingen::Shared::World* world = NULL; void @@ -236,7 +234,7 @@ main(int argc, char** argv) // Run engine main loop until interrupt while (world->local_engine()->main_iteration()) { - nanosleep(&main_rate, NULL); + Glib::usleep(125000); // 1/8 second } info << "Finished main loop" << endl; } |