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
2a354d6d
Commit
2a354d6d
authored
Jul 03, 2002
by
Andreas Mohr
Committed by
Alexandre Julliard
Jul 03, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call Sleep for int 0x2f function 0x1680 (IDLE CALL).
parent
01c1466c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
int2f.c
msdos/int2f.c
+12
-0
No files found.
msdos/int2f.c
View file @
2a354d6d
...
@@ -319,6 +319,18 @@ static void do_int2f_16( CONTEXT86 *context )
...
@@ -319,6 +319,18 @@ static void do_int2f_16( CONTEXT86 *context )
break
;
break
;
case
0x80
:
/* Release time-slice */
case
0x80
:
/* Release time-slice */
/* Linux sched_yield() still keeps burning CPU cycles
* if the current process is the only one in highest priority list
* (as Linux will immediately return to this process to waste
* more CPU cycles), so sched_yield() is essentially useless for us
* (poor API, if you ask me: its return code should indicate
* whether other processes did run in between, in order for us
* to be able to decide whether to do an additional Sleep() or not...)
* Thus we better unconditionally use a well-balanced Sleep()
* instead to really make sure the process calling int 0x2f/0x1680
* *doesn't* use 100% CPU...
*/
Sleep
(
55
);
/* just wait 55ms (one "timer tick") for now. */
AL_reg
(
context
)
=
0
;
AL_reg
(
context
)
=
0
;
break
;
break
;
...
...
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