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:
c4ea15c
)
Fix starting of HazardPointer policy
author
Maciej Piechotka
<uzytkownik2@gmail.com>
Sun, 2 Dec 2012 13:57:59 +0000
(13:57 +0000)
committer
Maciej Piechotka
<uzytkownik2@gmail.com>
Sun, 2 Dec 2012 13:57:59 +0000
(13:57 +0000)
gee/hazardpointer.vala
patch
|
blob
|
history
diff --git
a/gee/hazardpointer.vala
b/gee/hazardpointer.vala
index
d725dfc
..
7de9b01
100644
(file)
--- a/
gee/hazardpointer.vala
+++ b/
gee/hazardpointer.vala
@@
-487,10
+487,9
@@
public class Gee.HazardPointer<G> { // FIXME: Make it a struct
_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)));
+ start ((ReleasePolicy) policy);
}
_queue_mutex.unlock ();
- if ((policy & (1 << (sizeof(int) * 8 - 1))) == 0) {
- }
}
}