void apply_test(hpx::lcos::local::latch& l, hpx::thread::id& id, int passed_through) { HPX_TEST_EQ(passed_through, 42); id = hpx::this_thread::get_id(); l.count_down(1); }
void test_count_down(hpx::lcos::local::latch& l) { ++num_threads; HPX_TEST(!l.is_ready()); l.count_down(NUM_THREADS); }