diff options
author | Vadim Rutkovsky <vrutkovs@redhat.com> | 2013-02-14 01:46:30 +0800 |
---|---|---|
committer | Vadim Rutkovsky <vrutkovs@redhat.com> | 2013-02-14 01:46:30 +0800 |
commit | da975dadf59db4410ee1796b93fd9c423958b98d (patch) | |
tree | d5b1ffc14a5b47123cb5f6f70a6fee160d9dac38 /smime/lib | |
parent | 3b11207dcbd01b5a18f93a406d267bb786829471 (diff) | |
download | gsoc2013-evolution-da975dadf59db4410ee1796b93fd9c423958b98d.tar gsoc2013-evolution-da975dadf59db4410ee1796b93fd9c423958b98d.tar.gz gsoc2013-evolution-da975dadf59db4410ee1796b93fd9c423958b98d.tar.bz2 gsoc2013-evolution-da975dadf59db4410ee1796b93fd9c423958b98d.tar.lz gsoc2013-evolution-da975dadf59db4410ee1796b93fd9c423958b98d.tar.xz gsoc2013-evolution-da975dadf59db4410ee1796b93fd9c423958b98d.tar.zst gsoc2013-evolution-da975dadf59db4410ee1796b93fd9c423958b98d.zip |
Replace deprecated static mutexes
Diffstat (limited to 'smime/lib')
-rw-r--r-- | smime/lib/e-cert-db.c | 6 |
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; } |