kernel32: Forward SleepConditionVariableSRW to ntdll.
This commit is contained in:
parent
fad29fc5d9
commit
72cf5d6f12
|
@ -1196,6 +1196,7 @@
|
|||
@ stdcall SizeofResource(long long)
|
||||
@ stdcall Sleep(long)
|
||||
@ stdcall SleepConditionVariableCS(ptr ptr long)
|
||||
@ stdcall SleepConditionVariableSRW(ptr ptr long long)
|
||||
@ stdcall SleepEx(long long)
|
||||
@ stdcall SuspendThread(long)
|
||||
@ stdcall SwitchToFiber(ptr)
|
||||
|
|
|
@ -2339,3 +2339,21 @@ BOOL WINAPI SleepConditionVariableCS( CONDITION_VARIABLE *variable, CRITICAL_SEC
|
|||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* SleepConditionVariableSRW (KERNEL32.@)
|
||||
*/
|
||||
BOOL WINAPI SleepConditionVariableSRW( RTL_CONDITION_VARIABLE *variable, RTL_SRWLOCK *lock, DWORD timeout, ULONG flags )
|
||||
{
|
||||
NTSTATUS status;
|
||||
LARGE_INTEGER time;
|
||||
|
||||
status = RtlSleepConditionVariableSRW( variable, lock, get_nt_timeout( &time, timeout ), flags );
|
||||
|
||||
if (status != STATUS_SUCCESS)
|
||||
{
|
||||
SetLastError( RtlNtStatusToDosError(status) );
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
@ -2363,6 +2363,7 @@ WINBASEAPI DWORD WINAPI SignalObjectAndWait(HANDLE,HANDLE,DWORD,BOOL);
|
|||
WINBASEAPI DWORD WINAPI SizeofResource(HMODULE,HRSRC);
|
||||
WINBASEAPI VOID WINAPI Sleep(DWORD);
|
||||
WINBASEAPI BOOL WINAPI SleepConditionVariableCS(PCONDITION_VARIABLE,PCRITICAL_SECTION,DWORD);
|
||||
WINBASEAPI BOOL WINAPI SleepConditionVariableSRW(PCONDITION_VARIABLE,PSRWLOCK,DWORD,ULONG);
|
||||
WINBASEAPI DWORD WINAPI SleepEx(DWORD,BOOL);
|
||||
WINBASEAPI DWORD WINAPI SuspendThread(HANDLE);
|
||||
WINBASEAPI void WINAPI SwitchToFiber(LPVOID);
|
||||
|
|
Loading…
Reference in New Issue