summaryrefslogtreecommitdiff
path: root/innobase/os/os0sync.c
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2003-05-14 20:17:01 +0300
committerunknown <heikki@hundin.mysql.fi>2003-05-14 20:17:01 +0300
commitfb0d4064a79f5bee250f8fbac0f2d552e16503e8 (patch)
treee2529a156958fcc994bb52b1822d6f075ad0123c /innobase/os/os0sync.c
parent23d7a317eea687133028801e2aafda31d3ddafa3 (diff)
downloadmariadb-git-fb0d4064a79f5bee250f8fbac0f2d552e16503e8.tar.gz
os0sync.c:
Check that pthread_mutex_init and pthread_mutex_destroy return 0 innobase/os/os0sync.c: Check that pthread_mutex_init and pthread_mutex_destroy return 0
Diffstat (limited to 'innobase/os/os0sync.c')
-rw-r--r--innobase/os/os0sync.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/innobase/os/os0sync.c b/innobase/os/os0sync.c
index 83b2961c3ca..c460416fa64 100644
--- a/innobase/os/os0sync.c
+++ b/innobase/os/os0sync.c
@@ -446,9 +446,9 @@ os_fast_mutex_init(
InitializeCriticalSection((LPCRITICAL_SECTION) fast_mutex);
#else
#if defined(UNIV_HOTBACKUP) && defined(UNIV_HPUX10)
- pthread_mutex_init(fast_mutex, pthread_mutexattr_default);
+ ut_a(0 == pthread_mutex_init(fast_mutex, pthread_mutexattr_default));
#else
- pthread_mutex_init(fast_mutex, MY_MUTEX_INIT_FAST);
+ ut_a(0 == pthread_mutex_init(fast_mutex, MY_MUTEX_INIT_FAST));
#endif
#endif
}
@@ -496,6 +496,6 @@ os_fast_mutex_free(
DeleteCriticalSection((LPCRITICAL_SECTION) fast_mutex);
#else
- pthread_mutex_destroy(fast_mutex);
+ ut_a(0 == pthread_mutex_destroy(fast_mutex));
#endif
}