ipcq 0.12.0
Loading...
Searching...
No Matches
ipcq::detail::SpinConditionPolicy Class Referencefinal

Simple spinning condition. More...

#include <shm.hpp>

Public Types

using condition_t = unsigned int
 

Public Member Functions

void Signal () noexcept
 
template<class Rep, class Period, class Predicate>
bool Wait (std::chrono::duration< Rep, Period > timeout, Predicate pred) noexcept
 

Detailed Description

Simple spinning condition.

Definition at line 278 of file shm.hpp.

Member Typedef Documentation

◆ condition_t

Definition at line 280 of file shm.hpp.

Member Function Documentation

◆ Signal()

void ipcq::detail::SpinConditionPolicy::Signal ( )
inlinenoexcept

Definition at line 282 of file shm.hpp.

◆ Wait()

template<class Rep, class Period, class Predicate>
bool ipcq::detail::SpinConditionPolicy::Wait ( std::chrono::duration< Rep, Period > timeout,
Predicate pred )
inlinenodiscardnoexcept
Note
: It is possible that between detecting that a wait is necessary and actually creating the initial state to await a change on, the writer calls Signal(); In this scenario the reader will not be able to see the signal as a true signal.

Definition at line 294 of file shm.hpp.


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