diff options
author | unknown <heikki@hundin.mysql.fi> | 2003-05-14 20:17:01 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2003-05-14 20:17:01 +0300 |
commit | fb0d4064a79f5bee250f8fbac0f2d552e16503e8 (patch) | |
tree | e2529a156958fcc994bb52b1822d6f075ad0123c /innobase/os/os0sync.c | |
parent | 23d7a317eea687133028801e2aafda31d3ddafa3 (diff) | |
download | mariadb-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.c | 6 |
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 } |