[evolution-data-server] CamelIMAPXJob: Add a reference count.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] CamelIMAPXJob: Add a reference count.
- Date: Fri, 2 Dec 2011 06:17:27 +0000 (UTC)
commit 9e693d310a250ef46ac5beea12c3c8e68aaf72c2
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Dec 1 20:39:37 2011 -0600
CamelIMAPXJob: Add a reference count.
camel/providers/imapx/camel-imapx-server.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index 6a1c877..fb942a4 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -228,6 +228,8 @@ struct _imapx_flag_change {
typedef struct _CamelIMAPXJob CamelIMAPXJob;
struct _CamelIMAPXJob {
+ volatile gint ref_count;
+
GCond *done_cond;
GMutex *done_mutex;
gboolean done_flag;
@@ -2188,6 +2190,7 @@ imapx_job_new (GCancellable *cancellable)
g_object_ref (cancellable);
job = g_slice_new0 (CamelIMAPXJob);
+ job->ref_count = 1;
job->done_cond = g_cond_new ();
job->done_mutex = g_mutex_new ();
job->cancellable = cancellable;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]