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) && _420 == _WIN32_WCE \
28 || defined(_X86_) && 300 <= _WIN32_WCE
31 #define _STDCALL __stdcall
40 #define _Thr_val(thr) thr._Id
41 #define _Thr_set_null(thr) (thr._Id = 0)
42 #define _Thr_is_null(thr) (thr._Id == 0)
51 #define _ONCE_FLAG_INIT_IMP 0
59 #define _THREAD_QUOTX(x) #x
60 #define _THREAD_QUOT(x) _THREAD_QUOTX(x)
62 #define _THREAD_ASSERT(expr, msg) ((expr) \
63 ? (void)0 : _Thrd_abort(__FILE__ "(" _THREAD_QUOT(__LINE__) "): " msg))
66 #define _THREAD_ASSERT(expr, msg) ((void)0)
72 #define _THREAD_EMULATE_TSS 1
74 #define _TSS_USE_MACROS 0
75 #define _TSS_DTOR_ITERATIONS_IMP 4
77 #pragma pop_macro("new")
#define _END_EXTERN_C
Definition: yvals.h:564
char _Once_flag_imp_t
Definition: xthrcommon.h:50
_CRTIMP _In_opt_z_ const wchar_t _In_opt_z_ const wchar_t unsigned int
Definition: crtdefs.h:642
Definition: xthrcommon.h:34
struct _Cnd_internal_imp_t * _Cnd_imp_t
Definition: xthrcommon.h:47
#define _EXTERN_C
Definition: yvals.h:563
unsigned int(_STDCALL * _Thrd_callback_t)(void *)
Definition: xthrcommon.h:44
struct _Mtx_internal_imp_t * _Mtx_imp_t
Definition: xthrcommon.h:45
unsigned int _Id
Definition: xthrcommon.h:37
void * _Hnd
Definition: xthrcommon.h:36
int _Tss_imp_t
Definition: xthrcommon.h:48
#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:483
_CRTIMP2_PURE void __cdecl _Thrd_abort(const char *)