pthread_multi_np3
Switch between multi- and single-threaded scheduling modes
Usage
#include <pthread_np.h>
int
pthread_multi_np(void);
int
pthread_single_np(void);
Library
POSIX Threads Library (libpthread, -lpthread)
Overview
The pthread_single_np() function switches the process to a single-threaded 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).
Return values
The pthread_multi_np() and pthread_single_np functions always return 0.
Releases
59 releases since FreeBSD 4.8-RELEASE; the text changed 35 times.