#include <glib.h>
-#include <unistd.h>
-
static GCond cond;
static GMutex mutex;
static volatile gint next;
g_mutex_init (&lock);
g_cond_init (&cond);
- /* Don't wait forever... */
- alarm (60);
-
until = g_get_monotonic_time () + G_TIME_SPAN_SECOND;
/* Could still have spurious wakeups, so we must loop... */