Skip to content

Commit

Permalink
Fixing compilation of throttling_scheduler if HPX_WITH_THREAD_COMPATI…
Browse files Browse the repository at this point in the history
…BILITY=ON
  • Loading branch information
hkaiser committed Aug 9, 2017
1 parent 8719307 commit 9be4b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hpx/runtime/threads/policies/throttling_scheduler.hpp
Expand Up @@ -104,15 +104,15 @@ namespace hpx { namespace threads { namespace policies
virtual bool get_next_thread(std::size_t num_thread, bool running,
std::int64_t& idle_loop_count, threads::thread_data*& thrd)
{
//Drain the queue of the disableed OS thread
// Drain the queue of the disabled OS thread
while (disabled(num_thread)) {
thread_queue_type* q = queues_[num_thread];
while (q->get_next_thread(thrd)) {
this->wait_or_add_new(num_thread, running, idle_loop_count) ;
this->schedule_thread(thrd, num_thread, thread_priority_normal);
}

std::unique_lock<std::mutex> l(mtx_);
std::unique_lock<compat::mutex> l(mtx_);
cond_.wait(l);
}

Expand Down

0 comments on commit 9be4b9a

Please sign in to comment.