[evolution/wip/gsettings] Replace deprecated g_atomic_int_exchange_and_add()
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/gsettings] Replace deprecated g_atomic_int_exchange_and_add()
- Date: Wed, 29 Jun 2011 17:49:28 +0000 (UTC)
commit 37fa42f72f2c1f63599178cecbca0015662445f8
Author: Milan Crha <mcrha redhat com>
Date: Wed Jun 1 07:22:46 2011 +0200
Replace deprecated g_atomic_int_exchange_and_add()
mail/e-mail-store.c | 2 +-
mail/mail-mt.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/mail/e-mail-store.c b/mail/e-mail-store.c
index e5d2012..1aef04a 100644
--- a/mail/e-mail-store.c
+++ b/mail/e-mail-store.c
@@ -115,7 +115,7 @@ store_info_unref (StoreInfo *store_info)
g_return_if_fail (store_info != NULL);
g_return_if_fail (store_info->ref_count > 0);
- if (g_atomic_int_exchange_and_add (&store_info->ref_count, -1) > 1)
+ if (g_atomic_int_add (&store_info->ref_count, -1) > 1)
return;
g_object_unref (store_info->store);
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index 686f6dc..5ef8a01 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -165,7 +165,7 @@ mail_msg_unref (gpointer msg)
g_return_if_fail (mail_msg != NULL);
g_return_if_fail (mail_msg->ref_count > 0);
- if (g_atomic_int_exchange_and_add (&mail_msg->ref_count, -1) > 1)
+ if (g_atomic_int_add (&mail_msg->ref_count, -1) > 1)
return;
#ifdef MALLOC_CHECK
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]