diff options
Diffstat (limited to 'src/hb-mutex-private.hh')
-rw-r--r-- | src/hb-mutex-private.hh | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/hb-mutex-private.hh b/src/hb-mutex-private.hh index fc8ef49..5b3a17e 100644 --- a/src/hb-mutex-private.hh +++ b/src/hb-mutex-private.hh @@ -65,26 +65,6 @@ typedef pthread_mutex_t hb_mutex_impl_t; #define hb_mutex_impl_finish(M) pthread_mutex_destroy (M) -#elif !defined(HB_NO_MT) && defined(HAVE_GLIB) - -#include <glib.h> -#if !GLIB_CHECK_VERSION(2,32,0) -typedef GStaticMutex hb_mutex_impl_t; -#define HB_MUTEX_IMPL_INIT G_STATIC_MUTEX_INIT -#define hb_mutex_impl_init(M) g_static_mutex_init (M) -#define hb_mutex_impl_lock(M) g_static_mutex_lock (M) -#define hb_mutex_impl_unlock(M) g_static_mutex_unlock (M) -#define hb_mutex_impl_finish(M) g_static_mutex_free (M) -#else -typedef GMutex hb_mutex_impl_t; -#define HB_MUTEX_IMPL_INIT {0} -#define hb_mutex_impl_init(M) g_mutex_init (M) -#define hb_mutex_impl_lock(M) g_mutex_lock (M) -#define hb_mutex_impl_unlock(M) g_mutex_unlock (M) -#define hb_mutex_impl_finish(M) g_mutex_clear (M) -#endif - - #elif !defined(HB_NO_MT) && defined(HAVE_INTEL_ATOMIC_PRIMITIVES) #if defined(HAVE_SCHED_H) && defined(HAVE_SCHED_YIELD) |