Commit 08bbf382 authored by Maciej (Matthew) Piechotka's avatar Maciej (Matthew) Piechotka
Browse files

Fix starting of HazardPointer policy

parent c4ea15c2
......@@ -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) {
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment