Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
3ae370dc
Commit
3ae370dc
authored
Dec 03, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Added a sleep in NtGet/SetContextThread, a yield is not enough on some kernels.
parent
80bbf583
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
thread.c
dlls/ntdll/thread.c
+14
-4
No files found.
dlls/ntdll/thread.c
View file @
3ae370dc
...
...
@@ -820,8 +820,13 @@ NTSTATUS WINAPI NtSetContextThread( HANDLE handle, const CONTEXT *context )
ret
=
wine_server_call
(
req
);
}
SERVER_END_REQ
;
if
(
ret
!=
STATUS_PENDING
)
break
;
NtYieldExecution
();
if
(
ret
==
STATUS_PENDING
)
{
LARGE_INTEGER
timeout
;
timeout
.
QuadPart
=
-
10000
;
NtDelayExecution
(
FALSE
,
&
timeout
);
}
else
break
;
}
NtResumeThread
(
handle
,
&
dummy
);
}
...
...
@@ -1110,8 +1115,13 @@ NTSTATUS WINAPI NtGetContextThread( HANDLE handle, CONTEXT *context )
ret
=
wine_server_call
(
req
);
}
SERVER_END_REQ
;
if
(
ret
!=
STATUS_PENDING
)
break
;
NtYieldExecution
();
if
(
ret
==
STATUS_PENDING
)
{
LARGE_INTEGER
timeout
;
timeout
.
QuadPart
=
-
10000
;
NtDelayExecution
(
FALSE
,
&
timeout
);
}
else
break
;
}
NtResumeThread
(
handle
,
&
dummy
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment