rx: Remove RX_CALL_BUSY
[openafs.git] / src / WINNT / client_osi / osithrdnt.h
1 /* Defines for abstraction layer for NT */
2
3 #ifndef THREAD_NT_H
4 #define THREAD_NT_H
5
6 #define thread_t HANDLE
7 #define ThreadFunc LPTHREAD_START_ROUTINE
8 #define SecurityAttrib PSECURITY_ATTRIBUTES
9
10 #define thrd_Create(security, stacksize, function, arg1, arg2, pid, name) \
11        CreateThread(security, stacksize, function, arg1, arg2, pid)
12
13 #define thrd_CloseHandle(phandle) CloseHandle(phandle)
14
15 #define thrd_CreateEvent CreateEvent
16 #define thrd_SetEvent SetEvent
17 #define thrd_ResetEvent ResetEvent
18 #define thrd_Increment InterlockedIncrement
19 #define thrd_Decrement InterlockedDecrement
20 #define thrd_WaitForSingleObject_Event WaitForSingleObject
21 #define thrd_WaitForMultipleObjects_Event WaitForMultipleObjects
22
23 #define thrd_Sleep Sleep
24
25 #define Crit_Sec       CRITICAL_SECTION
26 #define thrd_InitCrit  InitializeCriticalSection
27 #define thrd_EnterCrit EnterCriticalSection
28 #define thrd_LeaveCrit LeaveCriticalSection
29 #define thrd_DeleteCrit DeleteCriticalSection
30
31 #define thrd_Current   GetCurrentThreadId
32
33 #define EVENT_HANDLE   HANDLE
34 #define FILE_HANDLE    HANDLE
35
36 #endif /* THREAD_NT_H */