next up previous contents index
Next: 18.3.43 pthread_suspend: Suspend a Up: 18.3 POSIX Threads Reference Previous: 18.3.41 pthread_setschedparam: Set the

18.3.42 pthread_sleep: Sleep for an interval of time

 

SYNOPSIS

#include <oskit/threads/pthread.h>

int pthread_sleep(oskit_s64_t milliseconds);

DESCRIPTION

The calling thread is put to sleep for the number of milliseconds specified. The thread cannot be woken up until the given amount of time has passed, although the thread may be canceled with pthread_cancel

PARAMETERS

milliseconds
The number of milliseconds the thread should sleep for.

RETURNS

Returns zero on success.

RELATED INFORMATION

pthread_cancel



University of Utah Flux Research Group