nlib
|
A conditional variable for SharedCriticalSection
and nlib_rwlock
. This variable can be used in the same manner as CondVar
.
More...
#include "nn/nlib/threading/SharedCriticalSection.h"
Public Member Functions | |
constexpr | CondVarForSharedCriticalSection () noexcept=default |
Instantiates the object with default parameters (default constructor). | |
~CondVarForSharedCriticalSection () noexcept | |
Destructor. | |
void | Notify () noexcept |
Signals to at least one waiting thread. Also see nlib_condrwlock_signal() . | |
void | NotifyAll () noexcept |
Signals all waiting threads. Also see nlib_condrwlock_broadcast() . | |
errno_t | WaitReader (SharedCriticalSection &lock) noexcept |
Unlocks the read lock and waits for a signal from the condition variable. Also see nlib_condrwlock_wait() . | |
errno_t | WaitReader (nlib_rwlock &lock) noexcept |
Unlocks the read lock and waits for a signal from the condition variable. Also see nlib_condrwlock_wait() . | |
errno_t | Wait (SharedCriticalSection &lock) noexcept |
Unlocks a write lock and waits for a conditional variable signal. Also see nlib_condrwlock_wait() . | |
errno_t | Wait (nlib_rwlock &lock) noexcept |
Unlocks a write lock and waits for a conditional variable signal. Also see nlib_condrwlock_wait() . | |
errno_t | WaitReaderFor (SharedCriticalSection &lock, const TimeSpan &timeout) noexcept |
Unlocks a read lock and waits for a conditional variable signal for a specified period. Also see nlib_condrwlock_wait_for() . | |
errno_t | WaitReaderFor (nlib_rwlock &lock, const TimeSpan &timeout) noexcept |
Unlocks a read lock and waits for a conditional variable signal for a specified period. Also see nlib_condrwlock_wait_for() . | |
errno_t | WaitFor (SharedCriticalSection &lock, const TimeSpan &timeout) noexcept |
Unlocks a write lock and waits for a conditional variable signal for a specified period. Also see nlib_condrwlock_wait_for() . | |
errno_t | WaitFor (nlib_rwlock &lock, const TimeSpan &timeout) noexcept |
Unlocks a write lock and waits for a conditional variable signal for a specified period. Also see nlib_condrwlock_wait_for() . | |
errno_t | WaitReaderUntil (SharedCriticalSection &lock, const DateTime &datetime) noexcept |
Unlocks a read lock and waits for a conditional variable signal until specified date and time. Also see nlib_condrwlock_wait_until() . | |
errno_t | WaitReaderUntil (nlib_rwlock &lock, const DateTime &datetime) noexcept |
Unlocks a read lock and waits for a conditional variable signal until specified date and time. Also see nlib_condrwlock_wait_until() . | |
errno_t | WaitUntil (SharedCriticalSection &lock, const DateTime &datetime) noexcept |
Unlocks a write lock and waits for a conditional variable signal until specified date and time. Also see nlib_condrwlock_wait_until() . | |
errno_t | WaitUntil (nlib_rwlock &lock, const DateTime &datetime) noexcept |
Unlocks a write lock and waits for a conditional variable signal until specified date and time. Also see nlib_condrwlock_wait_until() . | |
A conditional variable for SharedCriticalSection
and nlib_rwlock
. This variable can be used in the same manner as CondVar
.
Definition at line 108 of file SharedCriticalSection.h.
© 2012-2017 Nintendo Co., Ltd. All rights reserved.