[libgee] Remove deprecation warning - changing the exchange_and_add to add
- From: Maciej Marcin Piechotka <mpiechotka src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgee] Remove deprecation warning - changing the exchange_and_add to add
- Date: Sun, 18 Aug 2013 19:27:00 +0000 (UTC)
commit 6b8f6c58513ea580db378b671e23d213d226405f
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date: Sat Aug 17 18:35:27 2013 +0200
Remove deprecation warning - changing the exchange_and_add to add
gee/hazardpointer.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gee/hazardpointer.vala b/gee/hazardpointer.vala
index 411aefd..81a9306 100644
--- a/gee/hazardpointer.vala
+++ b/gee/hazardpointer.vala
@@ -479,7 +479,7 @@ public class Gee.HazardPointer<G> { // FIXME: Make it a struct
if ((policy & (1 << (sizeof(int) * 8 - 1))) == 0) {
_queue = new LinkedList<ArrayList<FreeNode *>> ();
// Hack to not lie about successfull setting policy
- policy = AtomicInt.exchange_and_add (ref release_policy, (int)(1 <<
(sizeof(int) * 8 - 1)));
+ policy = AtomicInt.add (ref release_policy, (int)(1 << (sizeof(int) *
8 - 1)));
start ((ReleasePolicy) policy);
}
_queue_mutex.unlock ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]