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 /calendar | |
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 'calendar')
-rw-r--r-- | calendar/gui/e-meeting-store.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/calendar/gui/e-meeting-store.c b/calendar/gui/e-meeting-store.c index 88e4be47e1..d1f2d6acb7 100644 --- a/calendar/gui/e-meeting-store.c +++ b/calendar/gui/e-meeting-store.c @@ -1600,7 +1600,7 @@ freebusy_async (gpointer data) EMeetingAttendee *attendee = fbd->attendee; gchar *default_fb_uri = NULL; gchar *fburi = NULL; - static GStaticMutex mutex = G_STATIC_MUTEX_INIT; + static GMutex mutex; EMeetingStorePrivate *priv = fbd->store->priv; if (fbd->client) { @@ -1608,7 +1608,7 @@ freebusy_async (gpointer data) /* FIXME This a workaround for getting all the free busy * information for the users. We should be able to * get free busy asynchronously. */ - g_static_mutex_lock (&mutex); + g_mutex_lock (&mutex); priv->num_queries++; sigid = g_signal_connect ( fbd->client, "free-busy-data", @@ -1618,7 +1618,7 @@ freebusy_async (gpointer data) fbd->endt, fbd->users, NULL, NULL); g_signal_handler_disconnect (fbd->client, sigid); priv->num_queries--; - g_static_mutex_unlock (&mutex); + g_mutex_unlock (&mutex); g_slist_foreach (fbd->users, (GFunc) g_free, NULL); g_slist_free (fbd->users); |