kernelbase: Move WaitOnAddress implementation to sync.c.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-05-21 16:03:52 +02:00
parent 9b12068c6c
commit 6a1667fab4
2 changed files with 16 additions and 15 deletions

View File

@ -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;

View File

@ -286,6 +286,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
***********************************************************************/