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