ariba::utility::SystemQueue::SystemQueue::QueueThread Class Reference

Inherited by ariba::utility::SystemQueue::SystemQueue::QueueThreadDelay, and ariba::utility::SystemQueue::SystemQueue::QueueThreadDirect.

Collaboration diagram for ariba::utility::SystemQueue::SystemQueue::QueueThread:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 QueueThread (QueueThread *_transferQueue=NULL)
virtual ~QueueThread ()
void run ()
void cancel ()
bool isEmpty ()
void insert (const SystemEvent &event, uint32_t delay)
void enter ()
void leave ()

Protected Member Functions

virtual void onItemInserted (const SystemEvent &event)=0
virtual void onNextQueueItem (const SystemEvent &event)=0

Protected Attributes

QueueThreadtransferQueue
EventQueue eventsQueue
boost::mutex queueMutex

Static Private Member Functions

static void threadFunc (QueueThread *obj)

Private Attributes

boost::thread * queueThread
boost::condition_variable itemsAvailable
volatile bool running


Detailed Description

Definition at line 174 of file SystemQueue.h.


Constructor & Destructor Documentation

ariba::utility::SystemQueue::SystemQueue::QueueThread::QueueThread ( QueueThread _transferQueue = NULL  ) 

Definition at line 126 of file SystemQueue.cpp.

ariba::utility::SystemQueue::SystemQueue::QueueThread::~QueueThread (  )  [virtual]

Definition at line 130 of file SystemQueue.cpp.


Member Function Documentation

void ariba::utility::SystemQueue::SystemQueue::QueueThread::cancel (  ) 

void ariba::utility::SystemQueue::SystemQueue::QueueThread::enter (  ) 

void ariba::utility::SystemQueue::SystemQueue::QueueThread::insert ( const SystemEvent event,
uint32_t  delay 
)

bool ariba::utility::SystemQueue::SystemQueue::QueueThread::isEmpty (  ) 

void ariba::utility::SystemQueue::SystemQueue::QueueThread::leave (  ) 

virtual void ariba::utility::SystemQueue::SystemQueue::QueueThread::onItemInserted ( const SystemEvent event  )  [protected, pure virtual]

virtual void ariba::utility::SystemQueue::SystemQueue::QueueThread::onNextQueueItem ( const SystemEvent event  )  [protected, pure virtual]

void ariba::utility::SystemQueue::SystemQueue::QueueThread::run (  ) 

void ariba::utility::SystemQueue::SystemQueue::QueueThread::threadFunc ( QueueThread obj  )  [static, private]


Member Data Documentation

EventQueue ariba::utility::SystemQueue::SystemQueue::QueueThread::eventsQueue [protected]

boost::condition_variable ariba::utility::SystemQueue::SystemQueue::QueueThread::itemsAvailable [private]

boost::mutex ariba::utility::SystemQueue::SystemQueue::QueueThread::queueMutex [protected]

boost::thread* ariba::utility::SystemQueue::SystemQueue::QueueThread::queueThread [private]

volatile bool ariba::utility::SystemQueue::SystemQueue::QueueThread::running [private]

QueueThread* ariba::utility::SystemQueue::SystemQueue::QueueThread::transferQueue [protected]


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

Generated on Fri Aug 14 23:39:39 2009 for Ariba by  doxygen 1.5.8