#include <DCDT_Time.h>
Public Member Functions | |
DCDT_Sequencer () | |
~DCDT_Sequencer () | |
void | Wait (DCDT_TIME sleep_time) |
Wait for the specified amount of time then return. | |
void | Wait (struct timeval deadline) |
Wait for specified deadline then return. | |
void | CheckNextDeadline () |
Check if the first ( the nearest ) deadline was experied. | |
void | InsertElem (SequencerElem *newElem) |
Insert a new deadline element. | |
Private Attributes | |
int | NumOfDeadlines |
pthread_mutex_t | SequencerMutex |
SequencerElem * | Head |
SequencerElem * | Tail |
Friends | |
class | DCDT_MsgManager |
class | DCDT_Agora |
class | DCDT_Member |
Definition at line 249 of file DCDT_Time.h.
|
Definition at line 254 of file DCDT_Time.h. |
|
Definition at line 255 of file DCDT_Time.h. References SequencerElem::next. |
|
Check if the first ( the nearest ) deadline was experied. If so delete the deadline from the queue and signal it to the waiting thread via the corresponding condition. Definition at line 407 of file DCDT_Time.h. References Head, SequencerElem::next, NumOfDeadlines, and SequencerMutex. |
|
Insert a new deadline element.
Definition at line 280 of file DCDT_Time.h. References SequencerElem::deadline, Head, SequencerElem::next, NumOfDeadlines, and SequencerMutex. Referenced by Wait(). |
|
Wait for specified deadline then return. Create ad insert a new deadline into the sequencer, after the insertion wait that the corresponding condition becomes true; this function returns only when sleep_time was passed. Definition at line 368 of file DCDT_Time.h. References InsertElem(). |
|
Wait for the specified amount of time then return. Create ad insert a new deadline into the sequencer, after the insertion wait that the corresponding condition becomes true; this function returns only when sleep_time was passed. Definition at line 335 of file DCDT_Time.h. References SequencerElem::condition, InsertElem(), and SequencerElem::mutex. |
|
Definition at line 251 of file DCDT_Time.h. |
|
Definition at line 252 of file DCDT_Time.h. |
|
Definition at line 250 of file DCDT_Time.h. |
|
Definition at line 275 of file DCDT_Time.h. Referenced by CheckNextDeadline(), and InsertElem(). |
|
Definition at line 272 of file DCDT_Time.h. Referenced by CheckNextDeadline(), and InsertElem(). |
|
Definition at line 274 of file DCDT_Time.h. Referenced by CheckNextDeadline(), and InsertElem(). |
|
Definition at line 275 of file DCDT_Time.h. |