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
08c0f691
Commit
08c0f691
authored
Oct 09, 2004
by
Jeremy White
Committed by
Alexandre Julliard
Oct 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made NtDelayExecution with a 0 timeout yield the CPU, as it is
supposed to.
parent
2aa8e871
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
0 deletions
+12
-0
configure
configure
+2
-0
configure.ac
configure.ac
+1
-0
sync.c
dlls/ntdll/sync.c
+6
-0
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
08c0f691
...
...
@@ -16146,6 +16146,7 @@ fi
for
ac_func
in
\
_lwp_create
\
_lwp_self
\
...
...
@@ -16188,6 +16189,7 @@ for ac_func in \
pwrite
\
readlink
\
rfork
\
sched_yield
\
select
\
sendmsg
\
settimeofday
\
...
...
configure.ac
View file @
08c0f691
...
...
@@ -1099,6 +1099,7 @@ AC_CHECK_FUNCS(\
pwrite \
readlink \
rfork \
sched_yield \
select \
sendmsg \
settimeofday \
...
...
dlls/ntdll/sync.c
View file @
08c0f691
...
...
@@ -35,6 +35,9 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#ifdef HAVE_SCHED_H
# include <sched.h>
#endif
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
...
...
@@ -632,6 +635,9 @@ NTSTATUS WINAPI NtDelayExecution( BOOLEAN alertable, const LARGE_INTEGER *timeou
{
for
(;;)
select
(
0
,
NULL
,
NULL
,
NULL
,
NULL
);
}
#ifdef HAVE_SCHED_YIELD
else
if
(
!
timeout
->
QuadPart
)
sched_yield
();
#endif
else
{
abs_time_t
when
;
...
...
include/config.h.in
View file @
08c0f691
...
...
@@ -500,6 +500,9 @@
/* Define to 1 if you have the <sched.h> header file. */
#undef HAVE_SCHED_H
/* Define to 1 if you have the `sched_yield' function. */
#undef HAVE_SCHED_YIELD
/* Define to 1 if you have the <scsi/scsi.h> header file. */
#undef HAVE_SCSI_SCSI_H
...
...
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