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

 IDLE
 No threads are active.
 EXECUTING
 execute() is executing a single task.
 DISPATCHING
 dispatch() is draining the queue.
 SHUTDOWN
 SerailizerBase is being destroyed.
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

enum qpid::sys::SerializerBase::State [protected]

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  ) 

See also:
Serializer::Serializer


The documentation for this class was generated from the following file:
Generated on Thu Apr 10 11:09:11 2008 for Qpid by  doxygen 1.4.7