YACLib
C++ library for concurrent tasks execution
Loading...
Searching...
No Matches
condition_variable.cpp
Go to the documentation of this file.
2
3namespace yaclib::detail {
4
5constexpr std::cv_status CVStatusFrom(WaitStatus status) {
7 return std::cv_status::no_timeout;
8 }
9 return std::cv_status::timeout;
10}
11
12constexpr std::cv_status CVStatusFrom(std::cv_status status) {
13 return status;
14}
15
16} // namespace yaclib::detail
constexpr std::cv_status CVStatusFrom(WaitStatus)
Contract< V, E > MakeContract()
Creates related future and promise.
Definition contract.hpp:25