next up previous contents index
Next: 27.4.3 oskit_pthread_setprio: Change the Up: 27.4 Oskit API Extensions Previous: 27.4.1 oskit_pthread_sleep: Sleep for

27.4.2 oskit_pthread_wakeup: Wakeup a thread in oskit_pthread_sleep

 

SYNOPSIS

#include <oskit/threads/pthread.h>

int oskit_pthread_wakeup(pthread_t tid);

DESCRIPTION

Wakeup a thread that is sleeping in oskit_pthread_sleep, causing it to return from its sleep before the timeout expires.

PARAMETERS

tid
The thread to wakeup.

RETURNS

Returns zero on success. EINVAL if tid specifies an invalid thread or the current thread.

RELATED INFORMATION

oskit_pthread_sleep



Utah Flux Research Group