Commit 6a1667fa authored by Alexandre Julliard's avatar Alexandre Julliard

kernelbase: Move WaitOnAddress implementation to sync.c.

parent 9b12068c
......@@ -200,21 +200,6 @@ BOOL WINAPI QuirkIsEnabled3(void *unk1, void *unk2)
return FALSE;
}
/***********************************************************************
* WaitOnAddress (KERNELBASE.@)
*/
BOOL WINAPI WaitOnAddress(volatile void *addr, void *cmp, SIZE_T size, DWORD timeout)
{
LARGE_INTEGER to;
if (timeout != INFINITE)
{
to.QuadPart = -(LONGLONG)timeout * 10000;
return set_ntstatus( RtlWaitOnAddress( (const void *)addr, cmp, size, &to ));
}
return set_ntstatus( RtlWaitOnAddress( (const void *)addr, cmp, size, NULL ));
}
HRESULT WINAPI QISearch(void *base, const QITAB *table, REFIID riid, void **obj)
{
const QITAB *ptr;
......
......@@ -287,6 +287,22 @@ DWORD WINAPI DECLSPEC_HOTPATCH WaitForMultipleObjectsEx( DWORD count, const HAND
/***********************************************************************
* WaitOnAddress (kernelbase.@)
*/
BOOL WINAPI DECLSPEC_HOTPATCH WaitOnAddress( volatile void *addr, void *cmp, SIZE_T size, DWORD timeout )
{
LARGE_INTEGER to;
if (timeout != INFINITE)
{
to.QuadPart = -(LONGLONG)timeout * 10000;
return set_ntstatus( RtlWaitOnAddress( (const void *)addr, cmp, size, &to ));
}
return set_ntstatus( RtlWaitOnAddress( (const void *)addr, cmp, size, NULL ));
}
/***********************************************************************
* Events
***********************************************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment