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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
53b7eaf9
Commit
53b7eaf9
authored
May 14, 2003
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os0sync.c:
Check return value of pthread_cond_...
parent
cef5df82
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
innobase/os/os0sync.c
innobase/os/os0sync.c
+5
-4
No files found.
innobase/os/os0sync.c
View file @
53b7eaf9
...
...
@@ -68,9 +68,10 @@ os_event_create(
os_fast_mutex_init
(
&
(
event
->
os_mutex
));
#if defined(UNIV_HOTBACKUP) && defined(UNIV_HPUX10)
pthread_cond_init
(
&
(
event
->
cond_var
),
pthread_condattr_default
);
ut_a
(
0
==
pthread_cond_init
(
&
(
event
->
cond_var
),
pthread_condattr_default
));
#else
pthread_cond_init
(
&
(
event
->
cond_var
),
NULL
);
ut_a
(
0
==
pthread_cond_init
(
&
(
event
->
cond_var
),
NULL
)
);
#endif
event
->
is_set
=
FALSE
;
...
...
@@ -130,7 +131,7 @@ os_event_set(
/* Do nothing */
}
else
{
event
->
is_set
=
TRUE
;
pthread_cond_broadcast
(
&
(
event
->
cond_var
));
ut_a
(
0
==
pthread_cond_broadcast
(
&
(
event
->
cond_var
)
));
}
os_fast_mutex_unlock
(
&
(
event
->
os_mutex
));
...
...
@@ -182,7 +183,7 @@ os_event_free(
ut_a
(
event
);
os_fast_mutex_free
(
&
(
event
->
os_mutex
));
pthread_cond_destroy
(
&
(
event
->
cond_var
));
ut_a
(
0
==
pthread_cond_destroy
(
&
(
event
->
cond_var
)
));
ut_free
(
event
);
#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