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
fd78e6e3
Commit
fd78e6e3
authored
Jun 13, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Restart at the head of the wait queue when we woke a thread, since this…
server: Restart at the head of the wait queue when we woke a thread, since this can modify the queue.
parent
3fe51326
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
thread.c
server/thread.c
+6
-6
No files found.
server/thread.c
View file @
fd78e6e3
...
...
@@ -712,15 +712,15 @@ done:
/* attempt to wake threads sleeping on the object wait queue */
void
wake_up
(
struct
object
*
obj
,
int
max
)
{
struct
list
*
ptr
,
*
next
;
struct
list
*
ptr
;
LIST_FOR_EACH
_SAFE
(
ptr
,
next
,
&
obj
->
wait_queue
)
LIST_FOR_EACH
(
ptr
,
&
obj
->
wait_queue
)
{
struct
wait_queue_entry
*
entry
=
LIST_ENTRY
(
ptr
,
struct
wait_queue_entry
,
entry
);
if
(
wake_thread
(
entry
->
thread
))
{
if
(
max
&&
!--
max
)
break
;
}
if
(
!
wake_thread
(
entry
->
thread
))
continue
;
if
(
max
&&
!--
max
)
break
;
/* restart at the head of the list since a wake up can change the object wait queue */
ptr
=
&
obj
->
wait_queue
;
}
}
...
...
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