From e7131b5da256c3d9472e3e3fdb826ae14da13188 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 19 Feb 2009 13:33:03 +0100 Subject: utils: use g_usleep() instead of my_usleep() Now that I've found this nice function in the GLib docs, we can finally remove our custom sleep function. Still all those callers of g_usleep() have to be migrated one day to use events, instead of regular polling. --- src/timer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/timer.c') diff --git a/src/timer.c b/src/timer.c index 3cb497a1..7293f9f4 100644 --- a/src/timer.c +++ b/src/timer.c @@ -17,7 +17,6 @@ */ #include "timer.h" -#include "utils.h" #include "audio_format.h" #include @@ -78,5 +77,5 @@ void timer_sync(Timer *timer) sleep_duration = timer->time - now(); if (sleep_duration > 0) - my_usleep(sleep_duration); + g_usleep(sleep_duration); } -- cgit v1.2.3