YACLib
C++ library for concurrent tasks execution
|
#include <yaclib/async/detail/wait_impl.hpp>
#include <yaclib/async/future.hpp>
#include <yaclib/config.hpp>
#include <yaclib/util/detail/mutex_event.hpp>
#include <chrono>
#include <cstddef>
Go to the source code of this file.
Namespaces | |
namespace | yaclib |
Functions | |
template<typename Event = detail::MutexEvent, typename Rep , typename Period , typename... V, typename... E> | |
YACLIB_INLINE bool | yaclib::WaitFor (const std::chrono::duration< Rep, Period > &timeout_duration, FutureBase< V, E > &... fs) noexcept |
Wait until the specified timeout duration has elapsed or Ready becomes true. | |
template<typename Event = detail::MutexEvent, typename Rep , typename Period , typename Iterator > | |
YACLIB_INLINE std::enable_if_t<!is_future_base_v< Iterator >, bool > | yaclib::WaitFor (const std::chrono::duration< Rep, Period > &timeout_duration, Iterator begin, Iterator end) noexcept |
Wait until the specified timeout duration has elapsed or Ready becomes true. | |
template<typename Event = detail::MutexEvent, typename Rep , typename Period , typename Iterator > | |
YACLIB_INLINE bool | yaclib::WaitFor (const std::chrono::duration< Rep, Period > &timeout_duration, Iterator begin, std::size_t count) noexcept |
Wait until the specified timeout duration has elapsed or Ready becomes true. | |