Changeset 2476

Show
Ignore:
Timestamp:
07/19/07 07:27:37
Author:
jdapena
Message:

* libtinymail-camel/tny-camel-folder.c: protect a folder lock

with a reason. This prevents some interlock problems, as the
last unreason can lead to a folder lock.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/jdapena/guadec-week/ChangeLog

    r2471 r2476  
     12007-07-17  Jose Dapena Paz  <jdapena@igalia.com> 
     2 
     3        * libtinymail-camel/tny-camel-folder.c: protect a folder lock 
     4        with a reason. This prevents some interlock problems, as the 
     5        last unreason can lead to a folder lock. 
     6 
    172007-07-13  Philip Van Hoof  <pvanhoof@gnome.org> 
    28 
  • devel/jdapena/guadec-week/libtinymail-camel/tny-camel-folder.c

    r2462 r2476  
    15041504                return; 
    15051505 
     1506        /* we reason the folder to make sure it does not 
     1507         * lose all the references and uncache, causing an interlock */ 
     1508        _tny_camel_folder_reason (priv); 
    15061509        g_static_rec_mutex_lock (priv->folder_lock); 
    15071510 
     
    15421545        g_object_unref (G_OBJECT (headers)); 
    15431546        g_static_rec_mutex_unlock (priv->folder_lock); 
     1547        _tny_camel_folder_unreason (priv); 
    15441548 
    15451549        _tny_session_stop_operation (TNY_FOLDER_PRIV_GET_SESSION (priv));