diff options
Diffstat (limited to 'src/libstrongswan/threading/windows/thread.h')
-rw-r--r-- | src/libstrongswan/threading/windows/thread.h | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/src/libstrongswan/threading/windows/thread.h b/src/libstrongswan/threading/windows/thread.h index 571171702..3c470522b 100644 --- a/src/libstrongswan/threading/windows/thread.h +++ b/src/libstrongswan/threading/windows/thread.h @@ -16,6 +16,10 @@ #ifndef WINDOWS_THREAD_H_ #define WINDOWS_THREAD_H_ +/* for conditionVariables, Vista */ +#define _WIN32_WINNT 0x0600 +#include <library.h> + /** * @defgroup windowsthread windows * @ingroup threading @@ -25,27 +29,6 @@ */ /** - * MinGW seems to miss the actual struct definition - */ -typedef struct { - PVOID Ptr; -} SRWLOCK, *PSRWLOCK, CONDITION_VARIABLE, *PCONDITION_VARIABLE; - -VOID WINAPI InitializeConditionVariable(PCONDITION_VARIABLE ConditionVariable); -BOOL WINAPI SleepConditionVariableCS(PCONDITION_VARIABLE ConditionVariable, - PCRITICAL_SECTION CriticalSection, DWORD dwMilliseconds); -BOOL WINAPI SleepConditionVariableSRW(PCONDITION_VARIABLE ConditionVariable, - PSRWLOCK SRWLock, DWORD dwMilliseconds, ULONG Flags); -VOID WINAPI WakeAllConditionVariable(PCONDITION_VARIABLE ConditionVariable); -VOID WINAPI WakeConditionVariable(PCONDITION_VARIABLE ConditionVariable); -VOID WINAPI AcquireSRWLockExclusive(PSRWLOCK SRWLock); -VOID WINAPI AcquireSRWLockShared(PSRWLOCK SRWLock); -BOOL TryAcquireSRWLockExclusive(PSRWLOCK SRWLock); -VOID WINAPI InitializeSRWLock(PSRWLOCK SRWLock); -VOID WINAPI ReleaseSRWLockExclusive(PSRWLOCK SRWLock); -VOID WINAPI ReleaseSRWLockShared(PSRWLOCK SRWLock); - -/** * Set active condvar of a thread before waiting in it. * * @param cv active condition variable, NULL to unset |