Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
08c0f691
Commit
08c0f691
authored
20 years ago
by
Jeremy White
Committed by
Alexandre Julliard
20 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Made NtDelayExecution with a 0 timeout yield the CPU, as it is
supposed to.
parent
2aa8e871
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
configure
+2
-0
2 additions, 0 deletions
configure
configure.ac
+1
-0
1 addition, 0 deletions
configure.ac
dlls/ntdll/sync.c
+6
-0
6 additions, 0 deletions
dlls/ntdll/sync.c
include/config.h.in
+3
-0
3 additions, 0 deletions
include/config.h.in
with
12 additions
and
0 deletions
configure
+
2
−
0
View file @
08c0f691
...
...
@@ -16144,6 +16144,7 @@ fi
for ac_func in \
...
...
@@ -16188,6 +16189,7 @@ for ac_func in \
pwrite \
readlink \
rfork \
sched_yield \
select \
sendmsg \
settimeofday \
...
...
This diff is collapsed.
Click to expand it.
configure.ac
+
1
−
0
View file @
08c0f691
...
...
@@ -1099,6 +1099,7 @@ AC_CHECK_FUNCS(\
pwrite \
readlink \
rfork \
sched_yield \
select \
sendmsg \
settimeofday \
...
...
This diff is collapsed.
Click to expand it.
dlls/ntdll/sync.c
+
6
−
0
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
;
...
...
This diff is collapsed.
Click to expand it.
include/config.h.in
+
3
−
0
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment