#include <itpp/protocol/events.h>
Public Member Functions | |
Event_Queue () | |
Constructor. | |
~Event_Queue () | |
Destructor. | |
Static Public Member Functions | |
static void | add (Base_Event *e) |
Add event to Queue. | |
static Ttype | now () |
Return current time. | |
static void | start () |
Start executing events. | |
static void | stop () |
Stop execution of events. | |
static void | clear () |
Remove all events. | |
Friends | |
class | Base_Signal |
A class for storing and executing events. Events can be added to the queue and when the start() is called all events will be executed. Observe that Events need to be created before they are added to the queue by calling an appropriate constructor. However, expired events are destroyed automatically (the destructor is called).
Definition at line 108 of file events.h.
void itpp::Event_Queue::add | ( | Base_Event * | e | ) | [static] |
Add event to Queue.
Definition at line 48 of file events.cpp.
References itpp::Base_Event::delta_t, and itpp::Base_Event::expire_t.
Referenced by itpp::Signal< DataType >::operator()().
static Ttype itpp::Event_Queue::now | ( | ) | [inline, static] |
Return current time.
Definition at line 120 of file events.h.
Referenced by itpp::Selective_Repeat_ARQ_Sender::link_packets_max_queuing_time(), itpp::Front_Drop_Queue::pop(), itpp::Front_Drop_Queue::push(), itpp::TTimer< itpp::TCP_Receiver >::Set(), itpp::TCP_Sender::setup(), itpp::Sink::Sink(), itpp::Signal< DataType >::trigger(), itpp::TCP_Server_Application::write_to_net(), and itpp::Sink::~Sink().
void itpp::Event_Queue::start | ( | void | ) | [static] |
void itpp::Event_Queue::stop | ( | void | ) | [static] |
void itpp::Event_Queue::clear | ( | void | ) | [static] |
Generated on Thu Aug 30 02:47:25 2007 for IT++ by Doxygen 1.5.3