From: Behdad Esfahbod Date: Thu, 12 May 2011 01:14:34 +0000 (-0400) Subject: Remove unused hb_mutex_trylock() X-Git-Tag: submit/2.0alpha-wayland/20121130.004132~9^2~201 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=438c4eee353ddf0de66171d84c6ef9b21cbdf8f6;p=profile%2Fivi%2Forg.tizen.video-player.git Remove unused hb_mutex_trylock() --- diff --git a/src/hb-mutex-private.hh b/src/hb-mutex-private.hh index 3cc47e9..49750d5 100644 --- a/src/hb-mutex-private.hh +++ b/src/hb-mutex-private.hh @@ -49,7 +49,6 @@ typedef GStaticMutex hb_mutex_t; #define HB_MUTEX_INIT G_STATIC_MUTEX_INIT #define hb_mutex_init(M) g_static_mutex_init (M) #define hb_mutex_lock(M) g_static_mutex_lock (M) -#define hb_mutex_trylock(M) g_static_mutex_trylock (M) #define hb_mutex_unlock(M) g_static_mutex_unlock (M) #define hb_mutex_free(M) g_static_mutex_free (M) @@ -62,7 +61,6 @@ typedef CRITICAL_SECTION hb_mutex_t; #define HB_MUTEX_INIT { NULL, 0, 0, NULL, NULL, 0 } #define hb_mutex_init(M) InitializeCriticalSection (M) #define hb_mutex_lock(M) EnterCriticalSection (M) -#define hb_mutex_trylock(M) TryEnterCriticalSection (M) #define hb_mutex_unlock(M) LeaveCriticalSection (M) #define hb_mutex_free(M) DeleteCriticalSection (M) @@ -75,7 +73,6 @@ typedef struct { volatile int m; } hb_mutex_t; #define HB_MUTEX_INIT 0 #define hb_mutex_init(M) ((void) ((M)->m = 0)) #define hb_mutex_lock(M) ((void) ((M)->m = 1)) -#define hb_mutex_trylock(M) ((M)->m = 1, 1) #define hb_mutex_unlock(M) ((void) ((M)->m = 0)) #define hb_mutex_free(M) ((void) ((M)-M = 2))