3 #ifndef _THR_XTHRCOMMON_H
4 #define _THR_XTHRCOMMON_H
8 #pragma pack(push,_CRT_PACKING)
9 #pragma warning(push,3)
10 #pragma push_macro("new")
13 #if defined(_THREAD_CHECK) || defined(_DEBUG)
14 #define _THREAD_CHECKX 1
17 #define _THREAD_CHECKX 0
20 #pragma warning(disable: 4511 4512)
24 #pragma warning(disable:4115 4100 4097 4245)
26 #if defined(__EDG__) \
27 || defined(_X86_EMUL) && defined(_WIN32_WCE) && 420 == _WIN32_WCE \
28 || defined(_X86_) && defined(_WIN32_WCE) && 300 <= _WIN32_WCE
31 #define _STDCALL __stdcall
41 #define _Thr_val(thr) thr._Id
42 #define _Thr_set_null(thr) (thr._Hnd = 0, thr._Id = 0)
43 #define _Thr_is_null(thr) (thr._Id == 0)
50 #define _Mtx_internal_imp_size 32
51 #define _Mtx_internal_imp_alignment 8
52 #define _Cnd_internal_imp_size 16
53 #define _Cnd_internal_imp_alignment 8
55 #define _Mtx_internal_imp_size 20
56 #define _Mtx_internal_imp_alignment 4
57 #define _Cnd_internal_imp_size 8
58 #define _Cnd_internal_imp_alignment 4
62 #define _Mtx_internal_imp_size 80
63 #define _Mtx_internal_imp_alignment 8
64 #define _Cnd_internal_imp_size 72
65 #define _Cnd_internal_imp_alignment 8
67 #define _Mtx_internal_imp_size 48
68 #define _Mtx_internal_imp_alignment 4
69 #define _Cnd_internal_imp_size 40
70 #define _Cnd_internal_imp_alignment 4
85 #define _THREAD_QUOTX(x) #x
86 #define _THREAD_QUOT(x) _THREAD_QUOTX(x)
88 #define _THREAD_ASSERT(expr, msg) ((expr) \
89 ? (void)0 : _Thrd_abort(__FILE__ "(" _THREAD_QUOT(__LINE__) "): " msg))
92 #define _THREAD_ASSERT(expr, msg) ((void)0)
98 #define _THREAD_EMULATE_TSS 1
101 #define _THR_NOINDIR(x) *(x)
103 #define _TSS_USE_MACROS 0
104 #define _TSS_DTOR_ITERATIONS_IMP 4
106 #pragma pop_macro("new")
#define _END_EXTERN_C
Definition: yvals.h:575
Definition: xthrcommon.h:35
_Thrd_id_t _Id
Definition: xthrcommon.h:38
struct _Cnd_internal_imp_t * _Cnd_imp_t
Definition: xthrcommon.h:76
#define _EXTERN_C
Definition: yvals.h:574
unsigned int(_STDCALL * _Thrd_callback_t)(void *)
Definition: xthrcommon.h:45
struct _Mtx_internal_imp_t * _Mtx_imp_t
Definition: xthrcommon.h:74
unsigned int _Thrd_id_t
Definition: xthrcommon.h:34
void * _Hnd
Definition: xthrcommon.h:37
int _Tss_imp_t
Definition: xthrcommon.h:77
#define _STDCALL
Definition: xthrcommon.h:31
_CRTIMP2_PURE int __cdecl _Thrd_start(_Thrd_imp_t *, _Thrd_callback_t, void *)
#define _CRTIMP2_PURE
Definition: yvals.h:494
_CRTIMP2_PURE void __cdecl _Thrd_abort(const char *)