1.\" $OpenBSD: pthread_single_np.3,v 1.3 1999/07/09 13:35:25 aaron Exp $ 2.\" David Leonard <d@openbsd.org>, 1999. Public domain. 3.Dd March 21, 1999 4.Dt PTHREAD_SINGLE_NP 3 5.Os 6.Sh NAME 7.Nm pthread_single_np , 8.Nm pthread_multi_np 9.Nd switch thread scheduling mode 10.Sh SYNOPSIS 11.Fd #include <pthread.h> 12.Fd #include <pthread_np.h> 13.Ft int 14.Fn pthread_single_np void 15.Ft int 16.Fn pthread_multi_np void 17.Sh DESCRIPTION 18The 19.Fn pthread_single_np 20function causes the process to 21enter single-threaded (non-POSIX) scheduling mode. 22.Pp 23The 24.Fn pthread_multi_np 25function causes the process to 26return to multi-threaded scheduling mode. 27.Sh RETURN VALUES 28The 29.Fn pthread_single_np 30and 31.Fn pthread_multi_np 32functions return zero on success, or an error number on failure. 33.Sh SEE ALSO 34.Xr pthreads 3 35.Sh STANDARDS 36The 37.Fn pthread_single_np 38and 39.Fn pthread_multi_np 40functions are non-portable and may not be supported with the above 41semantics on other POSIX systems. 42