1pthread.h(3HEAD) Headers pthread.h(3HEAD)
2
3
4
6 pthread.h, pthread - threads
7
9 #include <pthread.h>
10
11
13 The <pthread.h> header defines the following symbols:
14
15 PTHREAD_BARRIER_SERIAL_THREAD
16 PTHREAD_CANCEL_ASYNCHRONOUS
17 PTHREAD_CANCEL_ENABLE
18 PTHREAD_CANCEL_DEFERRED
19 PTHREAD_CANCEL_DISABLE
20 PTHREAD_CANCELED
21 PTHREAD_COND_INITIALIZER
22 PTHREAD_CREATE_DETACHED
23 PTHREAD_CREATE_JOINABLE
24 PTHREAD_EXPLICIT_SCHED
25 PTHREAD_INHERIT_SCHED
26 PTHREAD_MUTEX_DEFAULT
27 PTHREAD_MUTEX_ERRORCHECK
28 PTHREAD_MUTEX_INITIALIZER
29 PTHREAD_MUTEX_NORMAL
30 PTHREAD_MUTEX_RECURSIVE
31 PTHREAD_MUTEX_ROBUST
32 PTHREAD_MUTEX_STALLED
33 PTHREAD_ONCE_INIT
34 PTHREAD_PRIO_INHERIT
35 PTHREAD_PRIO_NONE
36 PTHREAD_PRIO_PROTECT
37 PTHREAD_PROCESS_SHARED
38 PTHREAD_PROCESS_PRIVATE
39 PTHREAD_RWLOCK_INITIALIZER
40 PTHREAD_SCOPE_PROCESS
41 PTHREAD_SCOPE_SYSTEM
42
43
44
45 The types listed below are defined as described in <sys/types.h>. See
46 types.h(3HEAD).
47
48 pthread_attr_t
49 pthread_barrier_t
50 pthread_barrierattr_t
51 pthread_cond_t
52 pthread_condattr_t
53 pthread_key_t
54 pthread_mutex_t
55 pthread_mutexattr_t
56 pthread_once_t
57 pthread_rwlock_t
58 pthread_rwlockattr_t
59 pthread_spinlock_t
60 pthread_t
61
62
64 See attributes(5) for descriptions of the following attributes:
65
66
67
68
69 ┌─────────────────────────────┬─────────────────────────────┐
70 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
71 ├─────────────────────────────┼─────────────────────────────┤
72 │Interface Stability │Standard │
73 └─────────────────────────────┴─────────────────────────────┘
74
76 sched.h(3HEAD), time.h(3HEAD), types.h(3HEAD), pthread_attr_getguard‐
77 size(3C), pthread_attr_init(3C), pthread_attr_setscope(3C),
78 pthread_cancel(3C), pthread_cleanup_pop(3C), pthread_cond_init(3C),
79 pthread_cond_signal(3C), pthread_cond_wait(3C), pthread_con‐
80 dattr_init(3C), pthread_create(3C), pthread_detach(3C),
81 pthread_equal(3C), pthread_exit(3C), pthread_getconcurrency(3C),
82 pthread_getschedparam(3C), pthread_join(3C), pthread_key_create(3C),
83 pthread_key_delete(3C), pthread_mutex_consistent(3C),
84 pthread_mutex_init(3C), pthread_mutex_lock(3C), pthread_mutex_setprio‐
85 ceiling(3C), pthread_mutexattr_getrobust(3C), pthread_mutexattr_get‐
86 type(3C), pthread_mutexattr_getprotocol(3C), pthread_mutex‐
87 attr_init(3C), pthread_once(3C), pthread_rwlock_init(3C),
88 pthread_rwlock_rdlock(3C), pthread_rwlock_unlock(3C),
89 pthread_rwlock_wrlock(3C), pthread_rwlockattr_getpshared(3C),
90 pthread_rwlockattr_init(3C), pthread_self(3C), pthread_setcancel‐
91 state(3C), pthread_setspecific(3C), attributes(5), standards(5)
92
93
94
95SunOS 5.11 11 Nov 2008 pthread.h(3HEAD)