summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2003-05-14 20:22:55 +0300
committerunknown <heikki@hundin.mysql.fi>2003-05-14 20:22:55 +0300
commitdbc5d0e1096b33ae2bad34e2dc6821fea09806c3 (patch)
tree08c3aef1e8472affe766113eecd31d5c5c644914 /innobase
parentfb0d4064a79f5bee250f8fbac0f2d552e16503e8 (diff)
downloadmariadb-git-dbc5d0e1096b33ae2bad34e2dc6821fea09806c3.tar.gz
os0sync.c:
Check return value of pthread_cond_... innobase/os/os0sync.c: Check return value of pthread_cond_...
Diffstat (limited to 'innobase')
-rw-r--r--innobase/os/os0sync.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/innobase/os/os0sync.c b/innobase/os/os0sync.c
index c460416fa64..407b280f805 100644
--- a/innobase/os/os0sync.c
+++ b/innobase/os/os0sync.c
@@ -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