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