Zth (libzth)
zth::PolledWaiting< F > Class Template Reference

#include <waiter.h>

Inheritance diagram for zth::PolledWaiting< F >:
zth::TimedWaitable zth::Waitable zth::Listable< TimedWaitable >

Public Member Functions

 PolledWaiting (F const &f, TimeInterval const &interval=TimeInterval())
 
virtual ~PolledWaiting () override=default
 
virtual bool poll (Timestamp const &now=Timestamp::now()) noexcept override
 
TimeInterval const & interval () const noexcept
 
void setInterval (TimeInterval const &interval, Timestamp const &now=Timestamp::now()) 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 Types inherited from zth::Listable< TimedWaitable >
typedef TimedWaitable type
 
- 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

template<typename F>
class zth::PolledWaiting< F >

Definition at line 118 of file waiter.h.

Constructor & Destructor Documentation

◆ PolledWaiting()

template<typename F >
zth::PolledWaiting< F >::PolledWaiting ( F const &  f,
TimeInterval const &  interval = TimeInterval() 
)
inlineexplicit

Definition at line 121 of file waiter.h.

◆ ~PolledWaiting()

template<typename F >
virtual zth::PolledWaiting< F >::~PolledWaiting ( )
overridevirtualdefault

Member Function Documentation

◆ interval()

template<typename F >
TimeInterval const& zth::PolledWaiting< F >::interval ( ) const
inlinenoexcept

Definition at line 143 of file waiter.h.

◆ poll()

template<typename F >
virtual bool zth::PolledWaiting< F >::poll ( Timestamp const &  now = Timestamp::now())
inlineoverridevirtualnoexcept

Reimplemented from zth::TimedWaitable.

Definition at line 130 of file waiter.h.

◆ setInterval()

template<typename F >
void zth::PolledWaiting< F >::setInterval ( TimeInterval const &  interval,
Timestamp const &  now = Timestamp::now() 
)
inlinenoexcept

Definition at line 149 of file waiter.h.


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