Zth (libzth)
zth::TimedWaitable Class Reference

#include <waiter.h>

Inheritance diagram for zth::TimedWaitable:
zth::Waitable zth::Listable< TimedWaitable > zth::PolledWaiting< PolledMemberWaitingHelper< C > > zth::PolledWaiting< F > zth::Synchronizer::AlarmClock zth::PolledMemberWaiting< C >

Public Member Functions

 TimedWaitable (Timestamp const &timeout=Timestamp()) noexcept
 
virtual ~TimedWaitable () override=default
 
Timestamp const & timeout () const noexcept
 
virtual bool poll (Timestamp const &now=Timestamp::now()) noexcept override
 
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
 

Protected Member Functions

void setTimeout (Timestamp const &t) noexcept
 

Additional Inherited Members

- Public Types inherited from zth::Listable< TimedWaitable >
typedef TimedWaitable type
 
- Public Attributes inherited from zth::Listable< TimedWaitable >
Listableprev
 
Listableleft
 
Listablenext
 
Listableright
 

Detailed Description

Definition at line 68 of file waiter.h.

Constructor & Destructor Documentation

◆ TimedWaitable()

zth::TimedWaitable::TimedWaitable ( Timestamp const &  timeout = Timestamp())
inlineexplicitnoexcept

Definition at line 73 of file waiter.h.

◆ ~TimedWaitable()

virtual zth::TimedWaitable::~TimedWaitable ( )
overridevirtualdefault

Member Function Documentation

◆ operator<()

bool zth::TimedWaitable::operator< ( TimedWaitable const &  rhs) const
inlinenoexcept

Definition at line 89 of file waiter.h.

◆ poll()

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

◆ setTimeout()

void zth::TimedWaitable::setTimeout ( Timestamp const &  t)
inlineprotectednoexcept

Definition at line 108 of file waiter.h.

◆ str()

virtual string zth::TimedWaitable::str ( ) const
inlineoverridevirtual

Reimplemented from zth::Waitable.

Definition at line 94 of file waiter.h.

◆ timeout()

Timestamp const& zth::TimedWaitable::timeout ( ) const
inlinenoexcept

Definition at line 79 of file waiter.h.


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