next up previous contents index
Next: 25.3.46 sched_yield: Yield the Up: 25.3 POSIX Threads Reference Previous: 25.3.44 pthread_sleep: Sleep for

25.3.45 pthread_suspend: Suspend a thread

 

SYNOPSIS

#include <oskit/threads/pthread.h>

int pthread_suspend(pthread_t tid);

DESCRIPTION

Suspend the specified thread indefinitely. The thread may be resumed with pthread_resume or it may be canceled with pthread_cancel.

PARAMETERS

tid
The thread identifier of the thread to be suspended

RETURNS

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

RELATED INFORMATION

pthread_resume



Utah Flux Research Group