|
PTHREAD_MULTI_NP(3)
Contents
|
pthread_multi_np, pthread_single_np -- switch between multi- and singlethreaded
scheduling modes
Reentrant C Library (libc_r, -lc_r)
#include <pthread_np.h>
int
pthread_multi_np(void);
int
pthread_single_np(void);
The pthread_single_np() function switches the process to a singlethreaded
mode, i.e., suspends all threads except the current. The semantics
of this function is similar to pthread_suspend_all_np(3).
The pthread_multi_np() function switches the process to a multi-threaded
mode. The semantics of this function is similar to
pthread_resume_all_np(3).
The pthread_multi_np() and pthread_single_np functions always return 0.
pthread_resume_all_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 ] |