windows-nt/Source/XPSP1/NT/windows/netdde/incs/critsec.h

7 lines
334 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
extern CRITICAL_SECTION csNetDde;
#define EnterCrit() (EnterCriticalSection(&csNetDde))
#define LeaveCrit() (LeaveCriticalSection(&csNetDde))
#define CheckCritIn() assert((HANDLE)(ULONG_PTR)GetCurrentThreadId() == csNetDde.OwningThread)
#define CheckCritOut() assert((HANDLE)(ULONG_PTR)GetCurrentThreadId() != csNetDde.OwningThread)