Skip to content

Commit

Permalink
Fix #1028.
Browse files Browse the repository at this point in the history
  • Loading branch information
brycelelbach authored and hkaiser committed Dec 7, 2013
1 parent 719d599 commit 94dc136
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hpx/runtime/threads/detail/scheduling_loop.hpp
Expand Up @@ -222,7 +222,6 @@ namespace hpx { namespace threads { namespace detail
}

tfunc_time = util::hardware::timestamp() - overall_timestamp;
++executed_threads;
}
else {
// some other worker-thread got in between and started
Expand Down Expand Up @@ -288,7 +287,10 @@ namespace hpx { namespace threads { namespace detail
// references go out of scope.
// REVIEW: what has to be done with depleted HPX threads?
if (state_val == depleted || state_val == terminated)
{
++executed_threads;
scheduler.SchedulingPolicy::destroy_thread(thrd, busy_loop_count);
}

tfunc_time = util::hardware::timestamp() - overall_timestamp;
}
Expand Down

0 comments on commit 94dc136

Please sign in to comment.