]> pd.if.org Git - pdclib.old/blob - opt/pthreads/_PDCLIB_threadconfig.h
PDCLIB-2 PDCLIB-9 wcrtomb
[pdclib.old] / opt / pthreads / _PDCLIB_threadconfig.h
1 #ifndef _PDCLIB_THREADCONFIG_H
2 #define _PDCLIB_THREADCONFIG_H
3 #include <_PDCLIB_aux.h>
4 #include <_PDCLIB_config.h>
5
6 #ifdef __APPLE__
7 #include <_types.h>
8 #define _PDCLIB_THR_T __darwin_pthread_t
9 #define _PDCLIB_CND_T __darwin_pthread_cond_t
10 #define _PDCLIB_MTX_T __darwin_pthread_mutex_t
11
12 #define _PDCLIB_TSS_DTOR_ITERATIONS 5
13 #define _PDCLIB_TSS_T __darwin_pthread_key_t
14
15 typedef __darwin_pthread_once_t _PDCLIB_once_flag;
16 #define _PDCLIB_ONCE_FLAG_INIT {_PTHREAD_ONCE_SIG_init, {0}}
17
18 #else
19 #error Need to interrogate the C library headers for your platform
20 #endif
21
22 _PDCLIB_END_EXTERN_C
23 #endif