Zth (libzth)
zth::Synchronizer::AlarmClock Class Reference

#include <sync.h>

Inheritance diagram for zth::Synchronizer::AlarmClock:
zth::TimedWaitable zth::Waitable zth::Listable< TimedWaitable >

Public Types

typedef TimedWaitable base
 
- Public Types inherited from zth::Listable< TimedWaitable >
typedef TimedWaitable type
 

Public Member Functions

 AlarmClock (Synchronizer &synchronizer, Fiber &fiber, Timestamp const &timeout) noexcept
 
virtual ~AlarmClock () override=default
 
virtual bool poll (Timestamp const &now=Timestamp::now()) noexcept override
 
bool rang () const noexcept
 
- Public Member Functions inherited from zth::TimedWaitable
 TimedWaitable (Timestamp const &timeout=Timestamp()) noexcept
 
virtual ~TimedWaitable () override=default
 
Timestamp const & timeout () const noexcept
 
bool operator< (TimedWaitable const &rhs) const noexcept
 
virtual string str () const override
 
- Public Member Functions inherited from zth::Waitable
 Waitable () noexcept
 
virtual ~Waitable ()=default
 
Fiberfiber () const noexcept
 
void setFiber (Fiber &fiber) noexcept
 
void resetFiber () noexcept
 
bool hasFiber () const noexcept
 
- Public Member Functions inherited from zth::Listable< TimedWaitable >
constexpr Listable () noexcept
 
constexpr Listable (Listable const &e) noexcept
 
 Listable (Listable &&l) noexcept
 
Listableoperator= (Listable const &rhs) noexcept
 
Listableoperator= (Listable &&l) noexcept
 
typelistNext () const noexcept
 
typelistPrev () const noexcept
 

Additional Inherited Members

- Public Attributes inherited from zth::Listable< TimedWaitable >
Listableprev
 
Listableleft
 
Listablenext
 
Listableright
 
- Protected Member Functions inherited from zth::TimedWaitable
void setTimeout (Timestamp const &t) noexcept
 

Detailed Description

Definition at line 244 of file sync.h.

Member Typedef Documentation

◆ base

Definition at line 247 of file sync.h.

Constructor & Destructor Documentation

◆ AlarmClock()

zth::Synchronizer::AlarmClock::AlarmClock ( Synchronizer synchronizer,
Fiber fiber,
Timestamp const &  timeout 
)
inlinenoexcept

Definition at line 248 of file sync.h.

◆ ~AlarmClock()

virtual zth::Synchronizer::AlarmClock::~AlarmClock ( )
overridevirtualdefault

Member Function Documentation

◆ poll()

virtual bool zth::Synchronizer::AlarmClock::poll ( Timestamp const &  now = Timestamp::now())
inlineoverridevirtualnoexcept

Reimplemented from zth::TimedWaitable.

Definition at line 258 of file sync.h.

◆ rang()

bool zth::Synchronizer::AlarmClock::rang ( ) const
inlinenoexcept

Definition at line 269 of file sync.h.


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