1 | #include_next <pthread.h> |
---|---|
2 | |
3 | #ifndef _ISOMAC |
4 | /* Prototypes repeated instead of using __typeof because pthread.h is |
5 | included in C++ tests, and declaring functions with __typeof and |
6 | __THROW doesn't work for C++. */ |
7 | extern int __pthread_barrier_init (pthread_barrier_t *__restrict __barrier, |
8 | const pthread_barrierattr_t *__restrict |
9 | __attr, unsigned int __count) |
10 | __THROW __nonnull ((1)); |
11 | #if PTHREAD_IN_LIBC |
12 | libc_hidden_proto (__pthread_barrier_init) |
13 | #endif |
14 | extern int __pthread_barrier_wait (pthread_barrier_t *__barrier) |
15 | __THROWNL __nonnull ((1)); |
16 | #if PTHREAD_IN_LIBC |
17 | libc_hidden_proto (__pthread_barrier_wait) |
18 | #endif |
19 | |
20 | /* This function is called to initialize the pthread library. */ |
21 | extern void __pthread_initialize (void) __attribute__ ((weak)); |
22 | |
23 | extern int __pthread_kill (pthread_t threadid, int signo); |
24 | |
25 | extern pthread_t __pthread_self (void); |
26 | |
27 | #endif |
28 |