Skip to content

Commit

Permalink
Fix misplaced #if #endif's that cause build failure without THREAD_CU…
Browse files Browse the repository at this point in the history
…MULATIVE_COUNTS
  • Loading branch information
biddisco committed Aug 24, 2017
1 parent 6c214b2 commit 5a31947
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hpx/runtime/threads/detail/scheduled_thread_pool_impl.hpp
Expand Up @@ -563,6 +563,7 @@ namespace hpx { namespace threads { namespace detail

return executed_threads - reset_executed_threads;
}
#endif

template <typename Scheduler>
std::int64_t scheduled_thread_pool<Scheduler>::get_executed_threads() const
Expand All @@ -583,6 +584,7 @@ namespace hpx { namespace threads { namespace detail
#endif
}

#if defined(HPX_HAVE_THREAD_CUMULATIVE_COUNTS)
template <typename Scheduler>
std::int64_t scheduled_thread_pool<Scheduler>::get_executed_thread_phases(
std::size_t num, bool reset)
Expand Down Expand Up @@ -618,6 +620,7 @@ namespace hpx { namespace threads { namespace detail

return executed_phases - reset_executed_phases;
}
#endif

#if defined(HPX_HAVE_THREAD_IDLE_RATES)
template <typename Scheduler>
Expand Down Expand Up @@ -1392,5 +1395,3 @@ namespace hpx { namespace threads { namespace detail
resource::get_partitioner().unassign_pu(id_.name(), virt_core);
}
}}}

#endif

0 comments on commit 5a31947

Please sign in to comment.