summaryrefslogtreecommitdiffstats
path: root/src/ingen/main.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-01-14 21:47:32 +0000
committerDavid Robillard <d@drobilla.net>2012-01-14 21:47:32 +0000
commita2701525891f69cc810ed370dd54ac76944b1d0b (patch)
treebd605803eb386ab992b2ec59ab0971cd62468d58 /src/ingen/main.cpp
parent692e851810156ce4bc4929ea803366c2fcb2ed94 (diff)
downloadingen-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/main.cpp')
-rw-r--r--src/ingen/main.cpp6
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;
}