projects
/
platform
/
upstream
/
libgee.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6305f0
)
Remove deprecation warning - changing the exchange_and_add to add
author
Maciej Piechotka
<uzytkownik2@gmail.com>
Sat, 17 Aug 2013 16:35:27 +0000
(18:35 +0200)
committer
Maciej Piechotka
<uzytkownik2@gmail.com>
Sat, 17 Aug 2013 16:35:27 +0000
(18:35 +0200)
gee/hazardpointer.vala
patch
|
blob
|
history
diff --git
a/gee/hazardpointer.vala
b/gee/hazardpointer.vala
index
411aefd
..
81a9306
100644
(file)
--- 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 ();