SST/macro
sstmac_pthread_macro.h
Go to the documentation of this file.
1 /** Make sure to undefine any existing macros */
2 #ifndef SSTMAC_PTHREAD_MACRO_H
3 #define SSTMAC_PTHREAD_MACRO_H
4 
6 
7 
8 #define PTHREAD_THREADS_MAX SSTMAC_PTHREAD_THREADS_MAX
9 #define PTHREAD_KEYS_MAX SSTMAC_PTHREAD_KEYS_MAX
10 #define PTHREAD_STACK_MIN SSTMAC_PTHREAD_STACK_MIN
11 #define PTHREAD_CREATE_DETACHED SSTMAC_PTHREAD_CREATE_DETACHED
12 #define PTHREAD_CREATE_JOINABLE SSTMAC_PTHREAD_CREATE_JOINABLE
13 #define PTHREAD_ONCE_INIT SSTMAC_PTHREAD_ONCE_INIT
14 
15 #define pthread_create SSTMAC_pthread_create
16 #define pthread_exit SSTMAC_pthread_exit
17 #define pthread_join SSTMAC_pthread_join
18 #define pthread_tryjoin_np SSTMAC_pthread_tryjoin_np
19 #define pthread_timedjoin_np SSTMAC_pthread_timedjoin_np
20 #define pthread_detach SSTMAC_pthread_detach
21 #define pthread_equal SSTMAC_pthread_equal
22 #define pthread_attr_init SSTMAC_pthread_attr_init
23 #define pthread_attr_destroy SSTMAC_pthread_attr_destroy
24 #define pthread_attr_getdetachstate SSTMAC_pthread_attr_getdetachstate
25 #define pthread_attr_setdetachstate SSTMAC_pthread_attr_setdetachstate
26 #define pthread_attr_getguardsize SSTMAC_pthread_attr_getguardsize
27 #define pthread_attr_setguardsize SSTMAC_pthread_attr_setguardsize
28 #define pthread_attr_getschedparam SSTMAC_pthread_attr_getschedparam
29 #define pthread_attr_setschedparam SSTMAC_pthread_attr_setschedparam
30 #define pthread_attr_getschedpolicy SSTMAC_pthread_attr_getschedpolicy
31 #define pthread_attr_setschedpolicy SSTMAC_pthread_attr_setschedpolicy
32 #define pthread_attr_getinheritsched SSTMAC_pthread_attr_getinheritsched
33 #define pthread_attr_setinheritsched SSTMAC_pthread_attr_setinheritsched
34 #define pthread_attr_getscope SSTMAC_pthread_attr_getscope
35 #define pthread_attr_setscope SSTMAC_pthread_attr_setscope
36 #define pthread_attr_getstackaddr SSTMAC_pthread_attr_getstackaddr
37 #define pthread_attr_setstackaddr SSTMAC_pthread_attr_setstackaddr
38 #define pthread_attr_getstacksize SSTMAC_pthread_attr_getstacksize
39 #define pthread_attr_setstacksize SSTMAC_pthread_attr_setstacksize
40 #define pthread_attr_getstack SSTMAC_pthread_attr_getstack
41 #define pthread_attr_setstack SSTMAC_pthread_attr_setstack
42 #define pthread_attr_setaffinity_np SSTMAC_pthread_attr_setaffinity_np
43 #define pthread_attr_getaffinity_np SSTMAC_pthread_attr_getaffinity_np
44 #define pthread_getattr_np SSTMAC_pthread_getattr_np
45 #define pthread_setschedparam SSTMAC_pthread_setschedparam
46 #define pthread_getschedparam SSTMAC_pthread_getschedparam
47 #define pthread_setschedprio SSTMAC_pthread_setschedprio
48 #define pthread_getname_np SSTMAC_pthread_getname_np
49 #define pthread_setname_np SSTMAC_pthread_setname_np
50 #define pthread_getconcurrency SSTMAC_pthread_getconcurrency
51 #define pthread_setconcurrency SSTMAC_pthread_setconcurrency
52 #define pthread_yield SSTMAC_pthread_yield
53 #define pthread_setaffinity_np SSTMAC_pthread_setaffinity_np
54 #define pthread_getaffinity_np SSTMAC_pthread_getaffinity_np
55 #define pthread_once SSTMAC_pthread_once
56 #define pthread_setcancelstate SSTMAC_pthread_setcancelstate
57 #define pthread_setcanceltype SSTMAC_pthread_setcanceltype
58 #define pthread_cancel SSTMAC_pthread_cancel
59 #define pthread_mutex_init SSTMAC_pthread_mutex_init
60 #define pthread_mutex_destroy SSTMAC_pthread_mutex_destroy
61 #define pthread_mutex_trylock SSTMAC_pthread_mutex_trylock
62 #define pthread_mutex_lock SSTMAC_pthread_mutex_lock
63 #define pthread_mutex_timedlock SSTMAC_pthread_mutex_timedlock
64 #define pthread_mutex_unlock SSTMAC_pthread_mutex_unlock
65 #define pthread_mutex_getprioceiling SSTMAC_pthread_mutex_getprioceiling
66 #define pthread_mutex_setprioceiling SSTMAC_pthread_mutex_setprioceiling
67 #define pthread_mutex_consistent SSTMAC_pthread_mutex_consistent
68 #define pthread_mutex_consistent_np SSTMAC_pthread_mutex_consistent_np
69 #define pthread_mutexattr_init SSTMAC_pthread_mutexattr_init
70 #define pthread_mutexattr_destroy SSTMAC_pthread_mutexattr_destroy
71 #define pthread_mutexattr_getpshared SSTMAC_pthread_mutexattr_getpshared
72 #define pthread_mutexattr_setpshared SSTMAC_pthread_mutexattr_setpshared
73 #define pthread_mutexattr_gettype SSTMAC_pthread_mutexattr_gettype
74 #define pthread_mutexattr_settype SSTMAC_pthread_mutexattr_settype
75 #define pthread_mutexattr_getprotocol SSTMAC_pthread_mutexattr_getprotocol
76 #define pthread_mutexattr_setprotocol SSTMAC_pthread_mutexattr_setprotocol
77 #define pthread_mutexattr_getprioceiling SSTMAC_pthread_mutexattr_getprioceiling
78 #define pthread_mutexattr_setprioceiling SSTMAC_pthread_mutexattr_setprioceiling
79 #define pthread_mutexattr_getrobust SSTMAC_pthread_mutexattr_getrobust
80 #define pthread_mutexattr_getrobust_np SSTMAC_pthread_mutexattr_getrobust_np
81 #define pthread_mutexattr_setrobust SSTMAC_pthread_mutexattr_setrobust
82 #define pthread_mutexattr_setrobust_np SSTMAC_pthread_mutexattr_setrobust_np
83 #define pthread_rwlock_init SSTMAC_pthread_rwlock_init
84 #define pthread_rwlock_destroy SSTMAC_pthread_rwlock_destroy
85 #define pthread_rwlock_rdlock SSTMAC_pthread_rwlock_rdlock
86 #define pthread_rwlock_tryrdlock SSTMAC_pthread_rwlock_tryrdlock
87 #define pthread_rwlock_timedrdlock SSTMAC_pthread_rwlock_timedrdlock
88 #define pthread_rwlock_wrlock SSTMAC_pthread_rwlock_wrlock
89 #define pthread_rwlock_trywrlock SSTMAC_pthread_rwlock_trywrlock
90 #define pthread_rwlock_timedwrlock SSTMAC_pthread_rwlock_timedwrlock
91 #define pthread_rwlock_unlock SSTMAC_pthread_rwlock_unlock
92 #define pthread_rwlockattr_init SSTMAC_pthread_rwlockattr_init
93 #define pthread_rwlockattr_destroy SSTMAC_pthread_rwlockattr_destroy
94 #define pthread_rwlockattr_getpshared SSTMAC_pthread_rwlockattr_getpshared
95 #define pthread_rwlockattr_setpshared SSTMAC_pthread_rwlockattr_setpshared
96 #define pthread_rwlockattr_getkind_np SSTMAC_pthread_rwlockattr_getkind_np
97 #define pthread_rwlockattr_setkind_np SSTMAC_pthread_rwlockattr_setkind_np
98 #define pthread_cond_init SSTMAC_pthread_cond_init
99 #define pthread_cond_destroy SSTMAC_pthread_cond_destroy
100 #define pthread_cond_signal SSTMAC_pthread_cond_signal
101 #define pthread_cond_broadcast SSTMAC_pthread_cond_broadcast
102 #define pthread_cond_wait SSTMAC_pthread_cond_wait
103 #define pthread_cond_timedwait SSTMAC_pthread_cond_timedwait
104 #define pthread_condattr_init SSTMAC_pthread_condattr_init
105 #define pthread_condattr_destroy SSTMAC_pthread_condattr_destroy
106 #define pthread_condattr_getpshared SSTMAC_pthread_condattr_getpshared
107 #define pthread_condattr_setpshared SSTMAC_pthread_condattr_setpshared
108 #define pthread_condattr_getclock SSTMAC_pthread_condattr_getclock
109 #define pthread_condattr_setclock SSTMAC_pthread_condattr_setclock
110 #define pthread_spin_init SSTMAC_pthread_spin_init
111 #define pthread_spin_destroy SSTMAC_pthread_spin_destroy
112 #define pthread_spin_lock SSTMAC_pthread_spin_lock
113 #define pthread_spin_trylock SSTMAC_pthread_spin_trylock
114 #define pthread_spin_unlock SSTMAC_pthread_spin_unlock
115 #define pthread_barrier_init SSTMAC_pthread_barrier_init
116 #define pthread_barrier_destroy SSTMAC_pthread_barrier_destroy
117 #define pthread_barrier_wait SSTMAC_pthread_barrier_wait
118 #define pthread_barrierattr_init SSTMAC_pthread_barrierattr_init
119 #define pthread_barrierattr_destroy SSTMAC_pthread_barrierattr_destroy
120 #define pthread_barrierattr_getpshared SSTMAC_pthread_barrierattr_getpshared
121 #define pthread_barrierattr_setpshared SSTMAC_pthread_barrierattr_setpshared
122 #define pthread_key_create SSTMAC_pthread_key_create
123 #define pthread_key_delete SSTMAC_pthread_key_delete
124 #define pthread_setspecific SSTMAC_pthread_setspecific
125 #define pthread_getcpuclockid SSTMAC_pthread_getcpuclockid
126 #define pthread_atfork SSTMAC_pthread_atfork
127 #define pthread_self SSTMAC_pthread_self
128 #define pthread_kill SSTMAC_pthread_kill
129 #define pthread_getspecific SSTMAC_pthread_getspecific
130 #define pthread_setspecific SSTMAC_pthread_setspecific
131 
132 #define pthread_t sstmac_pthread_t
133 #define pthread_attr_t sstmac_pthread_attr_t
134 #define pthread_key_t sstmac_pthread_key_t
135 #define pthread_cond_t sstmac_pthread_cond_t
136 #define pthread_mutex_t sstmac_pthread_mutex_t
137 #define pthread_spinlock_t sstmac_pthread_spinlock_t
138 #define pthread_once_t sstmac_pthread_once_t
139 #define pthread_mutexattr_t sstmac_pthread_mutexattr_t
140 
141 #define PTHREAD_ONCE_INIT SSTMAC_PTHREAD_ONCE_INIT
142 #define PTHREAD_COND_INITIALIZER SSTMAC_PTHREAD_COND_INITIALIZER
143 #define PTHREAD_MUTEX_INITIALIZER SSTMAC_PTHREAD_MUTEX_INITIALIZER
144 
145 #endif