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/fiber/condition_variable.hpp
>
2
3
namespace
yaclib::detail::fiber
{
4
5
void
ConditionVariable::notify_one
()
noexcept
{
6
_queue.
NotifyOne
();
7
}
8
9
void
ConditionVariable::notify_all
()
noexcept
{
10
_queue.
NotifyAll
();
11
}
12
13
void
ConditionVariable::wait
(std::unique_lock<yaclib::detail::fiber::Mutex>& lock)
noexcept
{
14
WaitImpl(lock,
NoTimeoutTag
{});
15
}
16
17
ConditionVariable::native_handle_type
ConditionVariable::native_handle
() {
18
return
nullptr
;
19
}
20
21
}
// namespace yaclib::detail::fiber
yaclib::detail::fiber::ConditionVariable::wait
void wait(std::unique_lock< yaclib::detail::fiber::Mutex > &lock) noexcept
Definition
condition_variable.cpp:13
yaclib::detail::fiber::ConditionVariable::native_handle
native_handle_type native_handle()
Definition
condition_variable.cpp:17
yaclib::detail::fiber::ConditionVariable::notify_one
void notify_one() noexcept
Definition
condition_variable.cpp:5
yaclib::detail::fiber::ConditionVariable::notify_all
void notify_all() noexcept
Definition
condition_variable.cpp:9
yaclib::detail::fiber::ConditionVariable::native_handle_type
std::condition_variable::native_handle_type native_handle_type
Definition
condition_variable.hpp:52
yaclib::detail::fiber::FiberQueue::NotifyAll
void NotifyAll()
Definition
queue.cpp:12
yaclib::detail::fiber::FiberQueue::NotifyOne
void NotifyOne()
Definition
queue.cpp:21
condition_variable.hpp
yaclib::detail::fiber
Definition
atomic.hpp:7
yaclib::MakeContract
Contract< V, E > MakeContract()
Creates related future and promise.
Definition
contract.hpp:25
yaclib::detail::fiber::NoTimeoutTag
Definition
queue.hpp:12
src
fault
fiber
condition_variable.cpp
Generated by
1.9.8