summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2017-10-10 19:23:07 +0200
committerMilan Crha <mcrha@redhat.com>2017-10-10 19:23:07 +0200
commit684adf8a3d03077261cf81c503e2a794045945e9 (patch)
tree333812d32efbfcf7260bc4e013401fa9cb2c8667
parent5bb1fea8b0db5326bb3585493e0d6f60e6ade8e6 (diff)
downloadevolution-data-server-684adf8a3d03077261cf81c503e2a794045945e9.tar.gz
Extend a developer comment of camel_message_info_property_lock()
Related to bug 788782.
-rw-r--r--src/camel/camel-message-info.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/camel/camel-message-info.c b/src/camel/camel-message-info.c
index b2c5f08a4..fc4bc8fce 100644
--- a/src/camel/camel-message-info.c
+++ b/src/camel/camel-message-info.c
@@ -1151,6 +1151,12 @@ camel_message_info_ref_summary (const CamelMessageInfo *mi)
* when properties are changing. Release the lock with
* camel_message_info_property_unlock().
*
+ * Note: Make sure the CamelFolderSummary lock is held before this lock,
+ * if there will be called any 'set' function on the @mi, to avoid deadlock
+ * when the summary would be set as dirty while another thread might try
+ * to read values from the @mi, waiting for the property lock and holding
+ * the summary lock at the same time.
+ *
* Since: 3.24
**/
void