Skip to content

Commit

Permalink
Fix test to schedule_hint correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
biddisco committed Mar 14, 2018
1 parent f2f09b1 commit d848a8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/regressions/threads/block_os_threads_1036.cpp
Expand Up @@ -35,7 +35,8 @@ void blocker(
hpx::threads::register_work(
hpx::util::bind(&blocker, entered, started, blocked_threads, worker),
"blocker", hpx::threads::pending,
hpx::threads::thread_priority_normal, worker);
hpx::threads::thread_priority_normal,
hpx::threads::thread_schedule_hint(worker));
return;
}

Expand Down Expand Up @@ -79,7 +80,8 @@ int hpx_main()
hpx::threads::register_work(
hpx::util::bind(&blocker, &entered, &started, &blocked_threads, i),
"blocker", hpx::threads::pending,
hpx::threads::thread_priority_normal, i);
hpx::threads::thread_priority_normal,
hpx::threads::thread_schedule_hint(i));
++scheduled;
}
HPX_TEST_EQ(scheduled, os_thread_count - 1);
Expand Down

0 comments on commit d848a8b

Please sign in to comment.