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
48c53215
Commit
48c53215
authored
May 01, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Give system APCs priority over signaled objects.
parent
103249ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
thread.c
server/thread.c
+6
-8
No files found.
server/thread.c
View file @
48c53215
...
...
@@ -497,15 +497,14 @@ static int check_wait( struct thread *thread )
struct
thread_wait
*
wait
=
thread
->
wait
;
struct
wait_queue_entry
*
entry
=
wait
->
queues
;
assert
(
wait
);
if
((
wait
->
flags
&
SELECT_INTERRUPTIBLE
)
&&
!
list_empty
(
&
thread
->
system_apc
))
return
STATUS_USER_APC
;
/* Suspended threads may not acquire locks, but they can run system APCs */
if
(
thread
->
process
->
suspend
+
thread
->
suspend
>
0
)
{
if
((
wait
->
flags
&
SELECT_INTERRUPTIBLE
)
&&
!
list_empty
(
&
thread
->
system_apc
))
return
STATUS_USER_APC
;
return
-
1
;
}
if
(
thread
->
process
->
suspend
+
thread
->
suspend
>
0
)
return
-
1
;
assert
(
wait
);
if
(
wait
->
flags
&
SELECT_ALL
)
{
int
not_ok
=
0
;
...
...
@@ -535,7 +534,6 @@ static int check_wait( struct thread *thread )
}
other_checks:
if
((
wait
->
flags
&
SELECT_INTERRUPTIBLE
)
&&
!
list_empty
(
&
thread
->
system_apc
))
return
STATUS_USER_APC
;
if
((
wait
->
flags
&
SELECT_ALERTABLE
)
&&
!
list_empty
(
&
thread
->
user_apc
))
return
STATUS_USER_APC
;
if
(
wait
->
timeout
<=
current_time
)
return
STATUS_TIMEOUT
;
return
-
1
;
...
...
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