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.
This commit is contained in:
Max Kellermann
2009-02-19 13:33:03 +01:00
parent c228635489
commit e7131b5da2
6 changed files with 4 additions and 24 deletions

View File

@@ -17,7 +17,6 @@
*/
#include "timer.h"
#include "utils.h"
#include "audio_format.h"
#include <glib.h>
@@ -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);
}