qpid::sys::SerializerBase Class Reference

Abstract base class for Serializer below. More...

#include <Serializer.h>

Inheritance diagram for qpid::sys::SerializerBase:

Inheritance graph
[legend]
Collaboration diagram for qpid::sys::SerializerBase:

Collaboration graph
[legend]

List of all members.

Public Types

typedef boost::function< void()> VoidFn0

Public Member Functions

 SerializerBase (bool immediate=true)
virtual void dispatch ()=0

Protected Types

enum  State { IDLE, EXECUTING, DISPATCHING, SHUTDOWN }

Protected Member Functions

void shutdown ()
void notifyWorker ()
void run ()
 Derived classes override run().
virtual bool empty ()=0
bool running ()
void wait ()

Protected Attributes

Monitor lock
State state
bool immediate
Thread worker


Detailed Description

Abstract base class for Serializer below.


Member Enumeration Documentation

Enumerator:
IDLE  No threads are active.
EXECUTING  execute() is executing a single task.
DISPATCHING  dispatch() is draining the queue.
SHUTDOWN  SerailizerBase is being destroyed.


Constructor & Destructor Documentation

qpid::sys::SerializerBase::SerializerBase ( bool  immediate = true  ) 


Member Function Documentation

void qpid::sys::SerializerBase::run (  )  [protected, virtual]

Derived classes override run().

Implements qpid::sys::Runnable.


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

Generated on Thu May 15 22:24:57 2008 for Qpid by  doxygen 1.5.5