summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-03-30 22:22:56 +0200
committerGravatar waker <wakeroid@gmail.com>2011-03-30 22:22:56 +0200
commit57de90e3b8958b4d5edf1bd0145f98623768caa9 (patch)
tree03fd9d1875d92b51aa8dfad88ead4f4583c5194d /main.c
parentd995a2ec11a36793a4f143b2343a71343ddb2bb6 (diff)
get rid of frameupdate event; mutex+cond based message pump without usleep
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main.c b/main.c
index 636542ac..d61b772f 100644
--- a/main.c
+++ b/main.c
@@ -389,6 +389,7 @@ player_mainloop (void) {
uintptr_t ctx;
uint32_t p1;
uint32_t p2;
+ messagepump_wait ();
while (messagepump_pop(&msg, &ctx, &p1, &p2) != -1) {
DB_output_t *output = plug_get_output ();
switch (msg) {
@@ -455,8 +456,8 @@ player_mainloop (void) {
break;
}
}
- usleep(50000);
- plug_trigger_event (DB_EV_FRAMEUPDATE, 0);
+ //usleep(50000);
+ //plug_trigger_event (DB_EV_FRAMEUPDATE, 0);
}
}