]> pd.if.org Git - pdclib.old/blob - opt/nothread/_PDCLIB_threadconfig.h
PDCLIB-1
[pdclib.old] / opt / nothread / _PDCLIB_threadconfig.h
1 #ifndef _PDCLIB_THREADCONFIG_H\r
2 #define _PDCLIB_THREADCONFIG_H\r
3 #include <_PDCLIB_aux.h>\r
4 #include <_PDCLIB_config.h>\r
5 \r
6 _PDCLIB_BEGIN_EXTERN_C\r
7 #define _PDCLIB_ONCE_FLAG_INIT 0\r
8 #define _PDCLIB_ONCE_FLAG_IS_DONE(_f) (*(_f) == 1)\r
9 typedef char _PDCLIB_once_flag;\r
10 \r
11 void _PDCLIB_call_once(_PDCLIB_once_flag *flag, void (*func)(void));\r
12 \r
13 #define _PDCLIB_THRD_HAVE_MISC\r
14 #define _PDCLIB_CND_T char\r
15 #define _PDCLIB_MTX_T char\r
16 #define _PDCLIB_TSS_T struct _PDCLIB_tss\r
17 \r
18 struct _PDCLIB_tss {\r
19         struct _PDCLIB_tss *self;\r
20         void *value;\r
21 };\r
22 \r
23 _PDCLIB_END_EXTERN_C\r
24 #endif\r