diff options
author | Milan Crha <mcrha@redhat.com> | 2017-10-10 19:23:07 +0200 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2017-10-10 19:23:07 +0200 |
commit | 684adf8a3d03077261cf81c503e2a794045945e9 (patch) | |
tree | 333812d32efbfcf7260bc4e013401fa9cb2c8667 | |
parent | 5bb1fea8b0db5326bb3585493e0d6f60e6ade8e6 (diff) | |
download | evolution-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.c | 6 |
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 |