Skip to content

Commit

Permalink
Fix sliding_semaphore_2338 test
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed Feb 23, 2018
1 parent 64c1337 commit cd4daf2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/regressions/lcos/sliding_semaphore_2338.cpp
Expand Up @@ -10,6 +10,7 @@
#include <hpx/include/actions.hpp>
#include <hpx/util/lightweight_test.hpp>

#include <atomic>
#include <cstddef>
#include <vector>

Expand All @@ -36,7 +37,7 @@ int main()
std::size_t window_size = 1;
std::size_t skip = 50;

std::size_t signal_count(0);
std::atomic<std::size_t> signal_count(0);

hpx::lcos::local::sliding_semaphore sem(window_size, 0);
message_double_action msg;
Expand All @@ -50,8 +51,8 @@ int main()
// so that N are always in flight
[&,parcel_count](hpx::future<double> &&f) -> void
{
sem.signal(parcel_count);
++signal_count;
sem.signal(parcel_count);
}
);

Expand Down

0 comments on commit cd4daf2

Please sign in to comment.