Update NEWS for 1.6.22
[pkg-k5-afs_openafs.git] / src / WINNT / client_osi / osithrdnt.h
blobbac94fb8d1b23ddfa6eb7f743b8a8057b4d0b951
1 /* Defines for abstraction layer for NT */
3 #ifndef THREAD_NT_H
4 #define THREAD_NT_H
6 #define thread_t HANDLE
7 #define ThreadFunc LPTHREAD_START_ROUTINE
8 #define SecurityAttrib PSECURITY_ATTRIBUTES
10 #define thrd_Create(security, stacksize, function, arg1, arg2, pid, name) \
11 CreateThread(security, stacksize, function, arg1, arg2, pid)
13 #define thrd_CloseHandle(phandle) CloseHandle(phandle)
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
23 #define thrd_Sleep Sleep
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
31 #define thrd_Current GetCurrentThreadId
33 #define EVENT_HANDLE HANDLE
34 #define FILE_HANDLE HANDLE
36 #endif /* THREAD_NT_H */