[nautilus] eel-string: don't use deprecated gatomic API
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] eel-string: don't use deprecated gatomic API
- Date: Fri, 3 Jun 2011 21:42:24 +0000 (UTC)
commit e3f055c886e9db0c105de59e80573a9715c41060
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Jun 3 17:41:03 2011 -0400
eel-string: don't use deprecated gatomic API
eel/eel-string.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/eel/eel-string.c b/eel/eel-string.c
index d45c621..1a7d65d 100644
--- a/eel/eel-string.c
+++ b/eel/eel-string.c
@@ -900,7 +900,7 @@ eel_ref_str_unref (eel_ref_str str)
} else if (old_ref == 0x80000001) {
G_LOCK (unique_ref_strs);
/* Need to recheck after taking lock to avoid races with _get_unique() */
- if (g_atomic_int_exchange_and_add (count, -1) == 0x80000001) {
+ if (g_atomic_int_add (count, -1) == 0x80000001) {
g_hash_table_remove (unique_ref_strs, (char *)str);
g_free ((char *)count);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]