diff options
author | Shaun McCance <shaunm@gnome.org> | 2013-08-18 17:40:49 -0400 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2013-08-18 17:40:49 -0400 |
commit | a25ade835a3b706749e7e324e85120c749999372 (patch) | |
tree | dfb4a1cf030d818abfcd47e732c24886be6cb18c /libyelp/yelp-storage.c | |
parent | f762d7559e35a12601a513b7ac191ada2b8cc304 (diff) | |
download | yelp-a25ade835a3b706749e7e324e85120c749999372.tar.gz |
Updates for some deprecated thread APIs
Diffstat (limited to 'libyelp/yelp-storage.c')
-rw-r--r-- | libyelp/yelp-storage.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libyelp/yelp-storage.c b/libyelp/yelp-storage.c index e369f42b..fc61740b 100644 --- a/libyelp/yelp-storage.c +++ b/libyelp/yelp-storage.c @@ -42,11 +42,11 @@ yelp_storage_set_default (YelpStorage *storage) YelpStorage * yelp_storage_get_default (void) { - static GStaticMutex mutex = G_STATIC_MUTEX_INIT; - g_static_mutex_lock (&mutex); + static GMutex mutex; + g_mutex_lock (&mutex); if (default_storage == NULL) default_storage = yelp_sqlite_storage_new (":memory:"); - g_static_mutex_unlock (&mutex); + g_mutex_unlock (&mutex); return default_storage; } |