pthread.h 827 B

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