Skip to content

Commit

Permalink
Merge pull request #3191 from STEllAR-GROUP/msimberg-patch-1
Browse files Browse the repository at this point in the history
Fix sliding_semaphore_2338 test
  • Loading branch information
hkaiser committed Feb 24, 2018
2 parents 225de55 + cd4daf2 commit 94f132c
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 94f132c

Please sign in to comment.