15 #ifndef PSEN_SCAN_V2_STANDALONE_ASYNC_BARRIER_H
16 #define PSEN_SCAN_V2_STANDALONE_ASYNC_BARRIER_H
34 template <
class Rep,
class Period>
35 bool waitTillRelease(
const std::chrono::duration<Rep, Period>& timeout)
const;
45 if (!is_released_.test_and_set())
51 template <
class Rep,
class Period>
54 return future_.wait_for(timeout) == std::future_status::ready;
60 #endif // PSEN_SCAN_V2_STANDALONE_ASYNC_BARRIER_H