65     debug(
"test", 0, 
"Sleeping");
    67     debug(
"test", 0, 
"Thread1 pid %ld", (
long)pid);
    70     debug(
"test", 0, 
"Woke up");
    77     debug(
"test", 0, 
"Sleeping");
    79     debug(
"test", 0, 
"Thread2 pid %ld", (
long)pid);
    82     debug(
"test", 0, 
"Woke up");
    93     debug(
"test", 0, 
"Parent pid %ld", (
long)pid);
    99     debug(
"test", 0 ,
"gwthread_cancel returns: %d", ret);
 
void gwthread_join_all(void)
 
static void thread2(void *arg)
 
#define gwthread_create(func, arg)
 
void gwthread_sleep(double seconds)
 
void debug(const char *place, int err, const char *fmt,...)
 
void gwthread_wakeup(long thread)
 
void gwlib_shutdown(void)
 
int gwthread_cancel(long thread)
 
void gwthread_wakeup_all(void)
 
static void thread1(void *arg)