aboutsummaryrefslogtreecommitdiffstats
path: root/smime
diff options
context:
space:
mode:
authorVadim Rutkovsky <vrutkovs@redhat.com>2013-02-14 01:46:30 +0800
committerVadim Rutkovsky <vrutkovs@redhat.com>2013-02-14 01:46:30 +0800
commitda975dadf59db4410ee1796b93fd9c423958b98d (patch)
treed5b1ffc14a5b47123cb5f6f70a6fee160d9dac38 /smime
parent3b11207dcbd01b5a18f93a406d267bb786829471 (diff)
downloadgsoc2013-evolution-da975dadf59db4410ee1796b93fd9c423958b98d.tar.gz
gsoc2013-evolution-da975dadf59db4410ee1796b93fd9c423958b98d.tar.zst
gsoc2013-evolution-da975dadf59db4410ee1796b93fd9c423958b98d.zip
Replace deprecated static mutexes
Diffstat (limited to 'smime')
-rw-r--r--smime/lib/e-cert-db.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/smime/lib/e-cert-db.c b/smime/lib/e-cert-db.c
index 1a5803fda1..bb4a68e61d 100644
--- a/smime/lib/e-cert-db.c
+++ b/smime/lib/e-cert-db.c
@@ -566,16 +566,16 @@ e_cert_db_init (ECertDB *ec)
{
}
-GStaticMutex init_mutex = G_STATIC_MUTEX_INIT;
+GMutex init_mutex;
static ECertDB *cert_db = NULL;
ECertDB *
e_cert_db_peek (void)
{
- g_static_mutex_lock (&init_mutex);
+ g_mutex_lock (&init_mutex);
if (!cert_db)
cert_db = g_object_new (E_TYPE_CERT_DB, NULL);
- g_static_mutex_unlock (&init_mutex);
+ g_mutex_unlock (&init_mutex);
return cert_db;
}