mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 21:35:43 +00:00
ntdll: Use helper function for NtWaitForMultipleObjects and NtWaitForSingleObject.
This commit is contained in:
parent
c948e84189
commit
75c9da68e2
|
@ -990,12 +990,9 @@ NTSTATUS WINAPI NtSetTimerResolution(IN ULONG resolution,
|
||||||
|
|
||||||
/* wait operations */
|
/* wait operations */
|
||||||
|
|
||||||
/******************************************************************
|
static NTSTATUS wait_objects( DWORD count, const HANDLE *handles,
|
||||||
* NtWaitForMultipleObjects (NTDLL.@)
|
BOOLEAN wait_any, BOOLEAN alertable,
|
||||||
*/
|
const LARGE_INTEGER *timeout )
|
||||||
NTSTATUS WINAPI NtWaitForMultipleObjects( DWORD count, const HANDLE *handles,
|
|
||||||
BOOLEAN wait_any, BOOLEAN alertable,
|
|
||||||
const LARGE_INTEGER *timeout )
|
|
||||||
{
|
{
|
||||||
select_op_t select_op;
|
select_op_t select_op;
|
||||||
UINT i, flags = SELECT_INTERRUPTIBLE;
|
UINT i, flags = SELECT_INTERRUPTIBLE;
|
||||||
|
@ -1009,12 +1006,23 @@ NTSTATUS WINAPI NtWaitForMultipleObjects( DWORD count, const HANDLE *handles,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/******************************************************************
|
||||||
|
* NtWaitForMultipleObjects (NTDLL.@)
|
||||||
|
*/
|
||||||
|
NTSTATUS WINAPI NtWaitForMultipleObjects( DWORD count, const HANDLE *handles,
|
||||||
|
BOOLEAN wait_any, BOOLEAN alertable,
|
||||||
|
const LARGE_INTEGER *timeout )
|
||||||
|
{
|
||||||
|
return wait_objects( count, handles, wait_any, alertable, timeout );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
* NtWaitForSingleObject (NTDLL.@)
|
* NtWaitForSingleObject (NTDLL.@)
|
||||||
*/
|
*/
|
||||||
NTSTATUS WINAPI NtWaitForSingleObject(HANDLE handle, BOOLEAN alertable, const LARGE_INTEGER *timeout )
|
NTSTATUS WINAPI NtWaitForSingleObject(HANDLE handle, BOOLEAN alertable, const LARGE_INTEGER *timeout )
|
||||||
{
|
{
|
||||||
return NtWaitForMultipleObjects( 1, &handle, FALSE, alertable, timeout );
|
return wait_objects( 1, &handle, FALSE, alertable, timeout );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue