Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
b1a79c6b
Commit
b1a79c6b
authored
Oct 06, 2021
by
Matteo Bruni
Committed by
Alexandre Julliard
Oct 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement NtYieldExecution() as usleep().
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ae1f9899
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
10 deletions
+1
-10
configure
configure
+0
-1
configure.ac
configure.ac
+0
-1
sync.c
dlls/ntdll/unix/sync.c
+1
-5
config.h.in
include/config.h.in
+0
-3
No files found.
configure
View file @
b1a79c6b
...
...
@@ -17913,7 +17913,6 @@ for ac_func in \
posix_fallocate
\
prctl
\
proc_pidinfo
\
sched_yield
\
setproctitle
\
setprogname
\
sigprocmask
\
...
...
configure.ac
View file @
b1a79c6b
...
...
@@ -2145,7 +2145,6 @@ AC_CHECK_FUNCS(\
posix_fallocate \
prctl \
proc_pidinfo \
sched_yield \
setproctitle \
setprogname \
sigprocmask \
...
...
dlls/ntdll/unix/sync.c
View file @
b1a79c6b
...
...
@@ -1505,12 +1505,8 @@ NTSTATUS WINAPI NtSignalAndWaitForSingleObject( HANDLE signal, HANDLE wait,
*/
NTSTATUS
WINAPI
NtYieldExecution
(
void
)
{
#ifdef HAVE_SCHED_YIELD
sched_yield
();
usleep
(
0
);
return
STATUS_SUCCESS
;
#else
return
STATUS_NO_YIELD_PERFORMED
;
#endif
}
...
...
include/config.h.in
View file @
b1a79c6b
...
...
@@ -519,9 +519,6 @@
/* Define to 1 if you have the `sched_setaffinity' function. */
#undef HAVE_SCHED_SETAFFINITY
/* Define to 1 if you have the `sched_yield' function. */
#undef HAVE_SCHED_YIELD
/* Define to 1 if `cmd' is a member of `scsireq_t'. */
#undef HAVE_SCSIREQ_T_CMD
...
...
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