Remove deprecation warning - changing the exchange_and_add to add
authorMaciej Piechotka <uzytkownik2@gmail.com>
Sat, 17 Aug 2013 16:35:27 +0000 (18:35 +0200)
committerMaciej Piechotka <uzytkownik2@gmail.com>
Sat, 17 Aug 2013 16:35:27 +0000 (18:35 +0200)
gee/hazardpointer.vala

index 411aefd..81a9306 100644 (file)
@@ -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 ();