[gcr] Use GMutex insteod of GStaticMutex
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr] Use GMutex insteod of GStaticMutex
- Date: Sat, 22 Dec 2012 14:44:18 +0000 (UTC)
commit f8afb1dd59dfaab3e644b69f7f301cdb27096da1
Author: Stef Walter <stefw gnome org>
Date: Sat Dec 22 13:21:20 2012 +0100
Use GMutex insteod of GStaticMutex
egg/egg-secure-memory.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/egg/egg-secure-memory.h b/egg/egg-secure-memory.h
index 969dbd7..5181551 100644
--- a/egg/egg-secure-memory.h
+++ b/egg/egg-secure-memory.h
@@ -57,11 +57,11 @@ typedef struct {
lock, unlock, fallback, NULL, EGG_SECURE_POOL_VER_STR };
#define EGG_SECURE_DEFINE_GLIB_GLOBALS() \
- static GStaticMutex memory_mutex = G_STATIC_MUTEX_INIT; \
+ static GMutex memory_mutex = { 0, }; \
static void egg_memory_lock (void) \
- { g_static_mutex_lock (&memory_mutex); } \
+ { g_mutex_lock (&memory_mutex); } \
static void egg_memory_unlock (void) \
- { g_static_mutex_unlock (&memory_mutex); } \
+ { g_mutex_unlock (&memory_mutex); } \
EGG_SECURE_DEFINE_GLOBALS (egg_memory_lock, egg_memory_unlock, g_realloc);
extern egg_secure_glob EGG_SECURE_GLOBALS;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]