|
PTHREAD_SUSPEND_NP(3)
Contents
|
pthread_suspend_np -- suspend a thread
Reentrant C Library (libc_r, -lc_r)
#include <pthread_np.h>
int
pthread_suspend_np(pthread_t tid);
The pthread_suspend_np() function, called on an active thread, causes it
to suspend.
If successful, pthread_suspend_np() function returns 0. Otherwise, an
error number is returned to indicate the error.
The pthread_suspend_np() function will fail if:
[EDEADLK] An attempt was made to suspend the current thread.
[EINVAL] The value specified by the tid argument is invalid.
[ESRC] No thread could be found corresponding to the thread
ID specified by the tid argument.
pthread_resume_all_np(3), pthread_resume_np(3), pthread_suspend_all_np(3)
This manual page was written by Alexey Zelkin <[email protected]>.
FreeBSD 5.2.1 February 13, 2003 FreeBSD 5.2.1 [ Back ] |