Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
e8db9ca2
Commit
e8db9ca2
authored
Jan 12, 2006
by
osku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forward port r123 from branches/5.0:
Replace goto in os_event_wait with a normal loop.
parent
7b1119ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
15 deletions
+15
-15
os/os0sync.c
os/os0sync.c
+15
-15
No files found.
os/os0sync.c
View file @
e8db9ca2
...
...
@@ -317,7 +317,8 @@ os_event_wait(
os_fast_mutex_lock
(
&
(
event
->
os_mutex
));
old_signal_count
=
event
->
signal_count
;
loop:
for
(;;)
{
if
(
event
->
is_set
==
TRUE
||
event
->
signal_count
!=
old_signal_count
)
{
...
...
@@ -334,11 +335,10 @@ loop:
pthread_cond_wait
(
&
(
event
->
cond_var
),
&
(
event
->
os_mutex
));
/* Solaris manual said that spurious wakeups may occur: we have to
check if the event really has been signaled after we came here to
wait */
goto
loop
;
/* Solaris manual said that spurious wakeups may occur: we
have to check if the event really has been signaled after
we came here to wait */
}
#endif
}
...
...
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