ntdll: Directly use server_select in wait_suspend.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4f673d5386
commit
0ab9e00ef6
|
@ -111,7 +111,6 @@ static ULONG remove_vectored_handler( struct list *handler_list, VECTORED_HANDLE
|
|||
*/
|
||||
void wait_suspend( CONTEXT *context )
|
||||
{
|
||||
LARGE_INTEGER timeout;
|
||||
int saved_errno = errno;
|
||||
context_t server_context;
|
||||
DWORD flags = context->ContextFlags;
|
||||
|
@ -127,8 +126,7 @@ void wait_suspend( CONTEXT *context )
|
|||
SERVER_END_REQ;
|
||||
|
||||
/* wait with 0 timeout, will only return once the thread is no longer suspended */
|
||||
timeout.QuadPart = 0;
|
||||
server_wait( NULL, 0, SELECT_INTERRUPTIBLE, &timeout );
|
||||
server_select( NULL, 0, SELECT_INTERRUPTIBLE, 0, NULL );
|
||||
|
||||
/* retrieve the new context */
|
||||
SERVER_START_REQ( get_suspend_context )
|
||||
|
|
Loading…
Reference in New Issue