evolution-data-server r9172 - trunk/servers/groupwise
- From: psankar svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9172 - trunk/servers/groupwise
- Date: Wed, 23 Jul 2008 17:15:14 +0000 (UTC)
Author: psankar
Date: Wed Jul 23 17:15:14 2008
New Revision: 9172
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9172&view=rev
Log:
2008-07-24 Sankar P <psankar novell com>
* e-gw-connection.c (e_gw_connection_dispose),
(e_gw_connection_init), (e_gw_connection_send_message):
Mutex-ify the connection bus.
Modified:
trunk/servers/groupwise/ChangeLog
trunk/servers/groupwise/e-gw-connection.c
Modified: trunk/servers/groupwise/e-gw-connection.c
==============================================================================
--- trunk/servers/groupwise/e-gw-connection.c (original)
+++ trunk/servers/groupwise/e-gw-connection.c Wed Jul 23 17:15:14 2008
@@ -61,6 +61,7 @@
GList *book_list;
EGwSendOptions *opts;
GMutex *reauth_mutex;
+ GMutex *msg_lock;
EProxy *proxy;
};
@@ -345,6 +346,11 @@
priv->reauth_mutex = NULL;
}
+ if (priv->msg_lock) {
+ g_mutex_free (priv->msg_lock);
+ priv->msg_lock = NULL;
+ }
+
if (priv->categories_by_id) {
g_hash_table_destroy (priv->categories_by_id);
priv->categories_by_id = NULL;
@@ -439,6 +445,7 @@
/* create the SoupSession for this connection */
priv->soup_session = soup_session_sync_new_with_options (SOUP_SESSION_TIMEOUT, timeout, NULL);
priv->reauth_mutex = g_mutex_new ();
+ priv->msg_lock = g_mutex_new ();
priv->categories_by_id = NULL;
priv->categories_by_name = NULL;
priv->book_list = NULL;
@@ -673,7 +680,9 @@
g_return_val_if_fail (E_IS_GW_CONNECTION (cnc), NULL);
g_return_val_if_fail (SOUP_IS_SOAP_MESSAGE (msg), NULL);
+ g_mutex_lock (cnc->priv->msg_lock);
soup_session_send_message (cnc->priv->soup_session, SOUP_MESSAGE (msg));
+ g_mutex_unlock (cnc->priv->msg_lock);
/* process response */
response = soup_soap_message_parse_response (msg);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]