Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
319 B

  1. #define Lock(_a) EnterCriticalSection(_a)
  2. #define Unlock(_a) LeaveCriticalSection(_a)
  3. #define CreateSem(_Initial) CreateSemaphoreA(NULL,(_Initial),-1,NULL)
  4. #define DestroySem(_hSem) CloseHandle((_hSem))
  5. #define Wait(_A) WaitForSingleObject((_A),0xFFFFFFFF)
  6. #define Signal(_A) ReleaseSemaphore((_A), 1, NULL)