X-Git-Url: https://pd.if.org/git/?p=pdclib.old;a=blobdiff_plain;f=opt%2Fpthreads%2F_PDCLIB_threadconfig.h;fp=opt%2Fpthreads%2F_PDCLIB_threadconfig.h;h=75e6f3a69230cb25eb6bf5ab421962b4a99312c9;hp=0000000000000000000000000000000000000000;hb=d293fb98fe80a472ad4d11b4d8a1413d2142064a;hpb=42ca148113de4800d41cbd0491c508160bb1cf36 diff --git a/opt/pthreads/_PDCLIB_threadconfig.h b/opt/pthreads/_PDCLIB_threadconfig.h new file mode 100644 index 0000000..75e6f3a --- /dev/null +++ b/opt/pthreads/_PDCLIB_threadconfig.h @@ -0,0 +1,23 @@ +#ifndef _PDCLIB_THREADCONFIG_H +#define _PDCLIB_THREADCONFIG_H +#include <_PDCLIB_aux.h> +#include <_PDCLIB_config.h> + +#ifdef __APPLE__ +#include <_types.h> +#define _PDCLIB_THR_T __darwin_pthread_t +#define _PDCLIB_CND_T __darwin_pthread_cond_t +#define _PDCLIB_MTX_T __darwin_pthread_mutex_t + +#define _PDCLIB_TSS_DTOR_ITERATIONS 5 +#define _PDCLIB_TSS_T __darwin_pthread_key_t + +typedef __darwin_pthread_once_t _PDCLIB_once_flag; +#define _PDCLIB_ONCE_FLAG_INIT {_PTHREAD_ONCE_SIG_init, {0}} + +#else +#error Need to interrogate the C library headers for your platform +#endif + +_PDCLIB_END_EXTERN_C +#endif