pion-net  4.0.7
Public Member Functions | Friends
pion::PionLockedQueue::ConsumerThread Class Reference

data structure used to manage idle consumer threads waiting for items More...

#include <PionLockedQueue.hpp>

List of all members.

Public Member Functions

 ConsumerThread (void)
template<typename DurationType >
 ConsumerThread (const DurationType &d)
bool isRunning (void) const
 returns true while the consumer thread is active/running
void stop (void)
 stops the thread -- if waiting on pop() will return immediately
void reset (void)
 stops the thread -- if waiting on pop() will return immediately
bool hasWakeupTimer (void) const
 returns true if an inactivity wakeup timer is set for the thread
const
boost::posix_time::time_duration & 
getWakeupTimer (void) const
 returns absolute wakeup time based on current time

Friends

class PionLockedQueue
 allow PionLockedQueue direct access to members

Detailed Description

data structure used to manage idle consumer threads waiting for items


Constructor & Destructor Documentation

pion::PionLockedQueue::ConsumerThread::ConsumerThread ( void  ) [inline]

default constructor used to disable idle wakeup timer (assumes thread is active/running)

Definition at line 130 of file PionLockedQueue.hpp.

template<typename DurationType >
pion::PionLockedQueue::ConsumerThread::ConsumerThread ( const DurationType &  d) [inline]

constructor used to enable an idle wakeup timer for the thread (assumes thread is active/running)

Parameters:
dinactivity wakeup timer duration

Definition at line 140 of file PionLockedQueue.hpp.


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