OpenAFS
OpenAFS distributed network file system
|
00001 /* Defines for abstraction layer for NT */ 00002 00003 #ifndef THREAD_NT_H 00004 #define THREAD_NT_H 00005 00006 #define thread_t HANDLE 00007 #define ThreadFunc LPTHREAD_START_ROUTINE 00008 #define SecurityAttrib PSECURITY_ATTRIBUTES 00009 00010 #define thrd_Create(security, stacksize, function, arg1, arg2, pid, name) \ 00011 CreateThread(security, stacksize, function, arg1, arg2, pid) 00012 00013 #define thrd_CloseHandle(phandle) CloseHandle(phandle) 00014 00015 #define thrd_CreateEvent CreateEvent 00016 #define thrd_SetEvent SetEvent 00017 #define thrd_ResetEvent ResetEvent 00018 #define thrd_Increment InterlockedIncrement 00019 #define thrd_Decrement InterlockedDecrement 00020 #define thrd_WaitForSingleObject_Event WaitForSingleObject 00021 #define thrd_WaitForMultipleObjects_Event WaitForMultipleObjects 00022 00023 #define thrd_Sleep Sleep 00024 00025 #define Crit_Sec CRITICAL_SECTION 00026 #define thrd_InitCrit InitializeCriticalSection 00027 #define thrd_EnterCrit EnterCriticalSection 00028 #define thrd_LeaveCrit LeaveCriticalSection 00029 #define thrd_DeleteCrit DeleteCriticalSection 00030 00031 #define thrd_Current GetCurrentThreadId 00032 00033 #define EVENT_HANDLE HANDLE 00034 #define FILE_HANDLE HANDLE 00035 00036 #endif /* THREAD_NT_H */