aboutsummaryrefslogtreecommitdiffstats
path: root/libibex/ibex_block.c
diff options
context:
space:
mode:
author1 <NotZed@Ximian.com>2001-11-02 05:23:36 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-11-02 05:23:36 +0800
commitf6f1ce07cef110a562d2981395ef7ba2db707a7c (patch)
treec73c81436530f30f30334d52028aec9251d07c95 /libibex/ibex_block.c
parentb5ec8bf5cfd3c1638dc41f58283909e4571fad97 (diff)
downloadgsoc2013-evolution-f6f1ce07cef110a562d2981395ef7ba2db707a7c.tar.gz
gsoc2013-evolution-f6f1ce07cef110a562d2981395ef7ba2db707a7c.tar.zst
gsoc2013-evolution-f6f1ce07cef110a562d2981395ef7ba2db707a7c.zip
Change to use pthread_mutex directly. (ibex_close): Same.
2001-11-01 <NotZed@Ximian.com> * ibex_block.c (ibex_open): Change to use pthread_mutex directly. (ibex_close): Same. * ibex_internal.h: Changed to use pthread mutexes. Fixes #14218. svn path=/trunk/; revision=14565
Diffstat (limited to 'libibex/ibex_block.c')
-rw-r--r--libibex/ibex_block.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libibex/ibex_block.c b/libibex/ibex_block.c
index a6f810d4ae..054a8791cf 100644
--- a/libibex/ibex_block.c
+++ b/libibex/ibex_block.c
@@ -358,7 +358,7 @@ ibex *ibex_open (char *file, int flags, int mode)
ib->mode = mode;
#ifdef ENABLE_THREADS
- ib->lock = g_mutex_new();
+ pthread_mutex_init(&ib->lock, NULL);
#endif
IBEX_LIST_LOCK(ib);
@@ -481,8 +481,9 @@ int ibex_close (ibex *ib)
g_free(ib->name);
#ifdef ENABLE_THREADS
- g_mutex_free(ib->lock);
+ pthread_mutex_destroy(&ib->lock);
#endif
+
g_free(ib);
return ret;