folder->priv = g_malloc0(sizeof(*folder->priv));
folder->priv->frozen = 0;
folder->priv->changed_frozen = camel_folder_change_info_new();
- folder->priv->async_rec_locks = FALSE;
+ folder->priv->skip_folder_lock = FALSE;
g_static_rec_mutex_init(&folder->priv->lock);
g_static_mutex_init(&folder->priv->change_lock);
}
}
void
-camel_folder_set_lock_async (CamelFolder *folder, gboolean async)
+camel_folder_set_lock_async (CamelFolder *folder, gboolean skip_folder_lock)
{
- folder->priv->async_rec_locks = async;
+ folder->priv->skip_folder_lock = skip_folder_lock;
}
CamelType
gboolean expunge,
CamelException *ex);
void camel_folder_set_lock_async (CamelFolder *folder,
- gboolean async);
+ gboolean skip_folder_lock);
CamelStore * camel_folder_get_parent_store (CamelFolder *folder);
/* must require the 'change_lock' to access this */
gint frozen;
struct _CamelFolderChangeInfo *changed_frozen; /* queues changed events */
- gboolean async_rec_locks;
+ gboolean skip_folder_lock;
};
#define CAMEL_FOLDER_LOCK(f, l) \
#define CAMEL_FOLDER_UNLOCK(f, l) \
(g_static_mutex_unlock(&((CamelFolder *) (f))->priv->l))
#define CAMEL_FOLDER_REC_LOCK(f, l) \
- if (((CamelFolder *) (f))->priv->async_rec_locks == FALSE) g_static_rec_mutex_lock(&((CamelFolder *) (f))->priv->l);
+ if (((CamelFolder *) (f))->priv->skip_folder_lock == FALSE) g_static_rec_mutex_lock(&((CamelFolder *) (f))->priv->l);
#define CAMEL_FOLDER_REC_UNLOCK(f, l) \
- if (((CamelFolder *) (f))->priv->async_rec_locks == FALSE) g_static_rec_mutex_unlock(&((CamelFolder *) (f))->priv->l);
+ if (((CamelFolder *) (f))->priv->skip_folder_lock == FALSE) g_static_rec_mutex_unlock(&((CamelFolder *) (f))->priv->l);
struct _CamelStorePrivate {
GStaticRecMutex folder_lock; /* for locking folder operations */