@@ -19,7 +19,6 @@ namespace pulsecount {
1919// /////////////////////////////////////////////////////////////////////////////////////////////////
2020static const uint chunk_size = 8 ;
2121static const uint dfs_threshold = 3 ;
22- static const uint heavy_weight = 1000 ;
2322
2423// /////////////////////////////////////////////////////////////////////////////////////////////////
2524// / MarkerTask
@@ -31,16 +30,16 @@ class MarkerTask: public task
3130
3231 template <typename TInput>
3332 MarkerTask (TInput srcBegin, TInput srcEnd) :
34- nodes_{ srcBegin, srcEnd }
33+ nodes_ ( srcBegin, srcEnd )
3534 {}
3635
3736 MarkerTask (MarkerTask& other, SplitTag) :
38- nodes_{ other.nodes_ , SplitTag{} }
37+ nodes_ ( other.nodes_, SplitTag( ) )
3938 {}
4039
4140 task* execute ()
4241 {
43- int splitCount = 0 ;
42+ uint splitCount = 0 ;
4443
4544 while (! nodes_.IsEmpty ())
4645 {
@@ -88,18 +87,18 @@ class UpdaterTask: public task
8887
8988 template <typename TInput>
9089 UpdaterTask (TTurn& turn, TInput srcBegin, TInput srcEnd) :
91- turn_ ( turn ), // For now, GCC requires still parenthesis here
92- nodes_{ srcBegin, srcEnd }
90+ turn_ ( turn ),
91+ nodes_ ( srcBegin, srcEnd )
9392 {}
9493
9594 UpdaterTask (TTurn& turn, Node* node) :
9695 turn_ ( turn ),
97- nodes_{ node }
96+ nodes_ ( node )
9897 {}
9998
10099 UpdaterTask (UpdaterTask& other, SplitTag) :
101100 turn_ ( other.turn_ ),
102- nodes_{ other.nodes_ , SplitTag{} }
101+ nodes_ ( other.nodes_, SplitTag( ) )
103102 {}
104103
105104 task* execute ()
@@ -258,7 +257,7 @@ void EngineBase<TTurn>::OnDynamicNodeAttach(Node& node, Node& parent, TTurn& tur
258257 bool shouldTick = false ;
259258
260259 {// parent.ShiftMutex (write)
261- NodeShiftMutexT::scoped_lock lock (parent.ShiftMutex , true );
260+ NodeShiftMutexT::scoped_lock lock (parent.ShiftMutex , true );
262261
263262 parent.Successors .Add (node);
264263
@@ -282,7 +281,7 @@ void EngineBase<TTurn>::OnDynamicNodeAttach(Node& node, Node& parent, TTurn& tur
282281template <typename TTurn>
283282void EngineBase<TTurn>::OnDynamicNodeDetach(Node& node, Node& parent, TTurn& turn)
284283{// parent.ShiftMutex (write)
285- NodeShiftMutexT::scoped_lock lock (parent.ShiftMutex , true );
284+ NodeShiftMutexT::scoped_lock lock (parent.ShiftMutex , true );
286285
287286 parent.Successors .Remove (node);
288287}// ~parent.ShiftMutex (write)
0 commit comments