[evolution-data-server] CamelIMAPXJob: Add imapx_job_ref().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] CamelIMAPXJob: Add imapx_job_ref().
- Date: Fri, 2 Dec 2011 06:17:32 +0000 (UTC)
commit 51f24e1780f33d300af3e6110bbd9ca609e24be5
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu Dec 1 20:43:18 2011 -0600
CamelIMAPXJob: Add imapx_job_ref().
camel/providers/imapx/camel-imapx-server.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-server.c b/camel/providers/imapx/camel-imapx-server.c
index fb942a4..34519b4 100644
--- a/camel/providers/imapx/camel-imapx-server.c
+++ b/camel/providers/imapx/camel-imapx-server.c
@@ -2198,6 +2198,17 @@ imapx_job_new (GCancellable *cancellable)
return job;
}
+static CamelIMAPXJob *
+imapx_job_ref (CamelIMAPXJob *job)
+{
+ g_return_val_if_fail (job != NULL, NULL);
+ g_return_val_if_fail (job->ref_count > 0, NULL);
+
+ g_atomic_int_inc (&job->ref_count);
+
+ return job;
+}
+
static void
imapx_job_free (CamelIMAPXJob *job)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]