nlib
nn::nlib::threading::CondVarForSharedCriticalSection Class Referencefinal

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().
 
NLIB_CHECK_RESULT 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().
 
NLIB_CHECK_RESULT 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().
 
NLIB_CHECK_RESULT 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().
 
NLIB_CHECK_RESULT 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().
 
NLIB_CHECK_RESULT 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().
 
NLIB_CHECK_RESULT 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().
 
NLIB_CHECK_RESULT 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().
 
NLIB_CHECK_RESULT 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().
 

Detailed Description

A conditional variable for SharedCriticalSection and nlib_rwlock. This variable can be used in the same manner as CondVar.

Definition at line 94 of file SharedCriticalSection.h.


The documentation for this class was generated from the following files: