live
DelayQueue Class Reference

#include <DelayQueue.hh>

Inheritance diagram for DelayQueue:
Collaboration diagram for DelayQueue:

Public Member Functions

 DelayQueue ()
virtual ~DelayQueue ()
void addEntry (DelayQueueEntry *newEntry)
void updateEntry (DelayQueueEntry *entry, DelayInterval newDelay)
void updateEntry (intptr_t tokenToFind, DelayInterval newDelay)
void removeEntry (DelayQueueEntry *entry)
DelayQueueEntryremoveEntry (intptr_t tokenToFind)
DelayInterval const & timeToNextAlarm ()
void handleAlarm ()
intptr_t token ()

Protected Member Functions

virtual void handleTimeout ()

Private Member Functions

DelayQueueEntryhead ()
DelayQueueEntryfindEntryByToken (intptr_t token)
void synchronize ()

Private Attributes

_EventTime fLastSyncTime
DelayQueueEntryfNext
DelayQueueEntryfPrev
DelayInterval fDeltaTimeRemaining
intptr_t fToken

Detailed Description

Definition at line 159 of file DelayQueue.hh.

Constructor & Destructor Documentation

◆ DelayQueue()

DelayQueue::DelayQueue ( )

◆ ~DelayQueue()

virtual DelayQueue::~DelayQueue ( )
virtual

Member Function Documentation

◆ addEntry()

void DelayQueue::addEntry ( DelayQueueEntry * newEntry)

◆ findEntryByToken()

DelayQueueEntry * DelayQueue::findEntryByToken ( intptr_t token)
private

◆ handleAlarm()

void DelayQueue::handleAlarm ( )

◆ handleTimeout()

virtual void DelayQueueEntry::handleTimeout ( )
protectedvirtualinherited

◆ head()

DelayQueueEntry * DelayQueue::head ( )
inlineprivate

Definition at line 174 of file DelayQueue.hh.

174{ return fNext; }
DelayQueueEntry * fNext

References DelayQueueEntry::DelayQueueEntry(), and DelayQueueEntry::fNext.

◆ removeEntry() [1/2]

void DelayQueue::removeEntry ( DelayQueueEntry * entry)

◆ removeEntry() [2/2]

DelayQueueEntry * DelayQueue::removeEntry ( intptr_t tokenToFind)

◆ synchronize()

void DelayQueue::synchronize ( )
private

◆ timeToNextAlarm()

DelayInterval const & DelayQueue::timeToNextAlarm ( )

◆ token()

intptr_t DelayQueueEntry::token ( )
inlineinherited

Definition at line 139 of file DelayQueue.hh.

139 {
140 return fToken;
141 }

References fToken.

Referenced by DelayQueueEntry(), and DelayQueue::findEntryByToken().

◆ updateEntry() [1/2]

void DelayQueue::updateEntry ( DelayQueueEntry * entry,
DelayInterval newDelay )

◆ updateEntry() [2/2]

void DelayQueue::updateEntry ( intptr_t tokenToFind,
DelayInterval newDelay )

Field Documentation

◆ fDeltaTimeRemaining

DelayInterval DelayQueueEntry::fDeltaTimeRemaining
privateinherited

Definition at line 152 of file DelayQueue.hh.

◆ fLastSyncTime

_EventTime DelayQueue::fLastSyncTime
private

Definition at line 178 of file DelayQueue.hh.

◆ fNext

DelayQueueEntry* DelayQueueEntry::fNext
privateinherited

Definition at line 150 of file DelayQueue.hh.

Referenced by DelayQueue::head().

◆ fPrev

DelayQueueEntry* DelayQueueEntry::fPrev
privateinherited

Definition at line 151 of file DelayQueue.hh.

◆ fToken

intptr_t DelayQueueEntry::fToken
privateinherited

Definition at line 154 of file DelayQueue.hh.

Referenced by token().


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