next up previous contents index
Next: 18.3.44 sched_yield: Yield the Up: 18.3 POSIX Threads Reference Previous: 18.3.42 pthread_sleep: Sleep for

18.3.43 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



University of Utah Flux Research Group