Zth (libzth)
zth::Waitable Class Referenceabstract

#include <waiter.h>

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

Public Member Functions

 Waitable () noexcept
 
virtual ~Waitable ()=default
 
Fiberfiber () const noexcept
 
virtual bool poll (Timestamp const &now=Timestamp::now()) noexcept=0
 
virtual string str () const
 
void setFiber (Fiber &fiber) noexcept
 
void resetFiber () noexcept
 
bool hasFiber () const noexcept
 

Detailed Description

Definition at line 27 of file waiter.h.

Constructor & Destructor Documentation

◆ Waitable()

zth::Waitable::Waitable ( )
inlinenoexcept

Definition at line 30 of file waiter.h.

◆ ~Waitable()

virtual zth::Waitable::~Waitable ( )
virtualdefault

Member Function Documentation

◆ fiber()

Fiber& zth::Waitable::fiber ( ) const
inlinenoexcept

Definition at line 36 of file waiter.h.

◆ hasFiber()

bool zth::Waitable::hasFiber ( ) const
inlinenoexcept

Definition at line 59 of file waiter.h.

◆ poll()

virtual bool zth::Waitable::poll ( Timestamp const &  now = Timestamp::now())
pure virtualnoexcept

◆ resetFiber()

void zth::Waitable::resetFiber ( )
inlinenoexcept

Definition at line 54 of file waiter.h.

◆ setFiber()

void zth::Waitable::setFiber ( Fiber fiber)
inlinenoexcept

Definition at line 49 of file waiter.h.

◆ str()

virtual string zth::Waitable::str ( ) const
inlinevirtual

Reimplemented in zth::TimedWaitable.

Definition at line 44 of file waiter.h.


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