evolution-data-server r9227 - trunk/camel/providers/local



Author: sragavan
Date: Wed Jul 30 09:05:45 2008
New Revision: 9227
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9227&view=rev

Log:
2008-07-30  Srinivasa Ragavan  <sragavan novell com>

	* camel/providers/local/camel-local-folder.c: Move the folder lock to
	provider. This is a very very ugly hack.


Modified:
   trunk/camel/providers/local/ChangeLog
   trunk/camel/providers/local/camel-local-folder.c

Modified: trunk/camel/providers/local/camel-local-folder.c
==============================================================================
--- trunk/camel/providers/local/camel-local-folder.c	(original)
+++ trunk/camel/providers/local/camel-local-folder.c	Wed Jul 30 09:05:45 2008
@@ -479,6 +479,13 @@
 {
 	CamelLocalFolder *lf = (CamelLocalFolder *)folder;
 
+	/* 
+	 * Banner: This is a very very ugly hack to get over the summary mismatch. This needs to 
+	 * be done better. Im postponing this post-disk summary.
+	 * */
+
+	CAMEL_FOLDER_REC_LOCK(folder, lock);
+
 	if (camel_local_summary_check((CamelLocalSummary *)folder->summary, lf->changes, ex) == -1)
 		return;
 
@@ -486,6 +493,8 @@
 		camel_object_trigger_event((CamelObject *)folder, "folder_changed", lf->changes);
 		camel_folder_change_info_clear(lf->changes);
 	}
+	CAMEL_FOLDER_REC_UNLOCK(folder, lock);
+	
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]