3 #ifndef _THR_XTHREADS_H
4 #define _THR_XTHREADS_H
10 #pragma pack(push,_CRT_PACKING)
11 #pragma warning(push,3)
12 #pragma push_macro("new")
99 #define _TSS_DTOR_ITERATIONS _TSS_DTOR_ITERATIONS_IMP
102 #define _Tss_create(key, dtor) _TSS_CREATE(key, dtor)
103 #define _Tss_delete(key) _TSS_DELETE(key)
104 #define _Tss_set(key, value) _TSS_SET(key, value)
105 #define _Tss_get(key) _TSS_GET(key)
111 #pragma pop_macro("new")
_CRTIMP2_PURE void __cdecl _Cnd_init_in_situ(_Cnd_t)
void __cdecl _Smtx_lock_shared(_Smtx_t *)
_CRTIMP2_PURE void __cdecl _Cnd_destroy(_Cnd_t)
int __cdecl _Smtx_try_lock_shared(_Smtx_t *)
_CRTIMP2_PURE void __cdecl _Thrd_yield(void)
_CRTIMP2_PURE void __cdecl _Cnd_register_at_thread_exit(_Cnd_t, _Mtx_t, int *)
void __cdecl _Smtx_unlock_exclusive(_Smtx_t *)
_CRTIMP2_PURE void __cdecl _Thrd_sleep(const xtime *)
Definition: xthreads.h:19
void __cdecl _Smtx_unlock_shared(_Smtx_t *)
_CRTIMP2_PURE int __cdecl _Cnd_timedwait(_Cnd_t, _Mtx_t, const xtime *)
_CRTIMP2_PURE void *__cdecl _Tss_get(_Tss_t)
_CRTIMP2_PURE void __cdecl _Cnd_do_broadcast_at_thread_exit(void)
void(* _Tss_dtor_t)(void *)
Definition: xthreads.h:92
Definition: xthreads.h:18
_CRTIMP2_PURE _Thrd_id_t __cdecl _Thrd_id(void)
_CRTIMP2_PURE int __cdecl _Mtx_lock(_Mtx_t)
_CRTIMP2_PURE void *__cdecl _Mtx_getconcrtcs(_Mtx_t)
Definition: xthrcommon.h:35
void __cdecl _Smtx_lock_exclusive(_Smtx_t *)
_CRTIMP2_PURE int __cdecl _Thrd_join(_Thrd_t, int *)
Definition: xthreads.h:20
struct _Cnd_internal_imp_t * _Cnd_imp_t
Definition: xthrcommon.h:76
_CRTIMP2_PURE void __cdecl _Thrd_abort(const char *)
_Tss_imp_t _Tss_t
Definition: xthreads.h:91
_CRTIMP2_PURE int __cdecl _Thrd_equal(_Thrd_t, _Thrd_t)
_CRTIMP2_PURE int __cdecl _Mtx_init(_Mtx_t *, int)
_CRTIMP2_PURE int __cdecl _Mtx_current_owns(_Mtx_t)
_CRTIMP2_PURE int __cdecl _Thrd_create(_Thrd_t *, _Thrd_start_t, void *)
struct _Mtx_internal_imp_t * _Mtx_imp_t
Definition: xthrcommon.h:74
int __cdecl _Smtx_try_lock_exclusive(_Smtx_t *)
_CRTIMP2_PURE unsigned int __cdecl _Thrd_hardware_concurrency(void)
_CRTIMP2_PURE int __cdecl _Cnd_init(_Cnd_t *)
_CRTIMP2_PURE int __cdecl _Mtx_trylock(_Mtx_t)
unsigned int _Thrd_id_t
Definition: xthrcommon.h:34
_CRTIMP2_PURE int __cdecl _Tss_set(_Tss_t, void *)
_CRTIMP2_PURE void __cdecl _Thrd_exit(int)
Definition: xthreads.h:44
_Mtx_imp_t _Mtx_t
Definition: xthreads.h:41
_CRTIMP2_PURE int __cdecl _Tss_create(_Tss_t *, _Tss_dtor_t)
_Cnd_imp_t _Cnd_t
Definition: xthreads.h:74
_CRTIMP2_PURE void __cdecl _Mtx_clear_owner(_Mtx_t)
_CRTIMP2_PURE int __cdecl _Mtx_timedlock(_Mtx_t, const xtime *)
_CRTIMP2_PURE int __cdecl _Mtx_unlock(_Mtx_t)
_CRTIMP2_PURE void __cdecl _Cnd_unregister_at_thread_exit(_Mtx_t)
_CRTIMP2_PURE int __cdecl _Thrd_detach(_Thrd_t)
Definition: xthreads.h:43
_Thrd_imp_t _Thrd_t
Definition: xthreads.h:25
_CRTIMP2_PURE void __cdecl _Mtx_reset_owner(_Mtx_t)
_CRTIMP2_PURE void __cdecl _Mtx_destroy_in_situ(_Mtx_t)
Definition: xthreads.h:21
int _Tss_imp_t
Definition: xthrcommon.h:77
void * _Smtx_t
Definition: xthreads.h:65
_CRTIMP2_PURE void __cdecl _Cnd_destroy_in_situ(_Cnd_t)
_CRTIMP2_PURE int __cdecl _Cnd_signal(_Cnd_t)
int(* _Thrd_start_t)(void *)
Definition: xthreads.h:26
_CRT_BEGIN_C_HEADER typedef void(__CRTDECL *unexpected_handler)()
Definition: xthreads.h:46
Definition: xthreads.h:45
_CRTIMP2_PURE void __cdecl _Mtx_destroy(_Mtx_t)
_CRTIMP2_PURE _Thrd_t __cdecl _Thrd_current(void)
_CRTIMP2_PURE int __cdecl _Cnd_broadcast(_Cnd_t)
_CRTIMP2_PURE int __cdecl _Tss_delete(_Tss_t)
Definition: xthreads.h:17
#define _END_C_LIB_DECL
Definition: yvals.h:573
#define _C_LIB_DECL
Definition: yvals.h:572
#define _CRTIMP2_PURE
Definition: yvals.h:494
_CRTIMP2_PURE void __cdecl _Mtx_init_in_situ(_Mtx_t, int)
_CRTIMP2_PURE int __cdecl _Cnd_wait(_Cnd_t, _Mtx_t)