aboutsummaryrefslogtreecommitdiff
path: root/include/pthread.h
blob: 7bbd36ccc73a691f1db5e6574277c86820e79b90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _INCLUDE_PTHREAD_H
#define _INCLUDE_PTHREAD_H 1
#include_next <pthread.h>

#ifndef _ISOMAC
/* Prototypes repeated instead of using __typeof because pthread.h is
   included in C++ tests, and declaring functions with __typeof and
   __THROW doesn't work for C++.  */
extern int __pthread_barrier_init (pthread_barrier_t *__restrict __barrier,
				 const pthread_barrierattr_t *__restrict
				 __attr, unsigned int __count)
     __THROW __nonnull ((1));
extern int __pthread_barrier_wait (pthread_barrier_t *__barrier)
     __THROWNL __nonnull ((1));

extern pthread_t __pthread_self (void) __THROW attribute_hidden;

/* This function is called to initialize the pthread library.  */
extern void __pthread_initialize (void) __attribute__ ((weak));
#endif
#endif