]> pd.if.org Git - pdclib/blob - opt/nothread/_PDCLIB_threadconfig.h
dos2unix
[pdclib] / opt / nothread / _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 __cplusplus
7 extern "C" {
8 #endif
9 #define _PDCLIB_ONCE_FLAG_INIT 0
10 #define _PDCLIB_ONCE_FLAG_IS_DONE(_f) (*(_f) == 1)
11 typedef char _PDCLIB_once_flag;
12
13 void _PDCLIB_call_once(_PDCLIB_once_flag *flag, void (*func)(void));
14
15 #define _PDCLIB_THRD_HAVE_MISC
16 #define _PDCLIB_CND_T char
17 #define _PDCLIB_MTX_T char
18 #define _PDCLIB_TSS_T struct _PDCLIB_tss
19
20 struct _PDCLIB_tss {
21         struct _PDCLIB_tss *self;
22         void *value;
23 };
24
25 #ifdef __cplusplus
26 }
27 #endif
28 #endif