20#ifndef _DELAY_QUEUE_HH
21#define _DELAY_QUEUE_HH
55 return !(*
this >= arg2);
61 return *
this >= arg2 && arg2 >= *
this;
64 return !(*
this == arg2);
89 return arg1 >= arg2 ? arg1 : arg2;
94 return arg1 <= arg2 ? arg1 : arg2;
123 unsigned usecondsSinceEpoch = 0)
125 :
Timeval(secondsSinceEpoch, usecondsSinceEpoch) {}
DelayInterval const DELAY_SECOND
DelayInterval const DELAY_ZERO
Timeval max(Timeval const &arg1, Timeval const &arg2)
DelayInterval const DELAY_DAY
DelayInterval const DELAY_HOUR
Timeval min(Timeval const &arg1, Timeval const &arg2)
_EventTime const THE_END_OF_TIME
DelayInterval operator*(short arg1, DelayInterval const &arg2)
DelayInterval const DELAY_MINUTE
DelayInterval(time_base_seconds seconds, time_base_seconds useconds)
DelayInterval fDeltaTimeRemaining
DelayQueueEntry(DelayInterval delay, intptr_t token)
virtual void handleTimeout()
virtual ~DelayQueueEntry()
void addEntry(DelayQueueEntry *newEntry)
void updateEntry(DelayQueueEntry *entry, DelayInterval newDelay)
DelayInterval const & timeToNextAlarm()
DelayQueueEntry * findEntryByToken(intptr_t token)
void updateEntry(intptr_t tokenToFind, DelayInterval newDelay)
DelayQueueEntry * removeEntry(intptr_t tokenToFind)
void removeEntry(DelayQueueEntry *entry)
void operator+=(class DelayInterval const &arg2)
Timeval(time_base_seconds seconds, time_base_seconds useconds)
time_base_seconds & usecs()
int operator<=(Timeval const &arg2) const
time_base_seconds seconds()
int operator>(Timeval const &arg2) const
void operator-=(class DelayInterval const &arg2)
int operator>=(Timeval const &arg2) const
int operator<(Timeval const &arg2) const
int operator!=(Timeval const &arg2) const
time_base_seconds seconds() const
time_base_seconds useconds() const
time_base_seconds useconds()
time_base_seconds & secs()
int operator==(Timeval const &arg2) const
_EventTime(unsigned secondsSinceEpoch=0, unsigned usecondsSinceEpoch=0)