OpenDDS::DCPS::PerConnectionSynch Class Reference

#include <PerConnectionSynch.h>

Inheritance diagram for OpenDDS::DCPS::PerConnectionSynch:

Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::PerConnectionSynch:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PerConnectionSynch (ThreadSynchResource *synch_resource)
virtual ~PerConnectionSynch ()
virtual void work_available ()
virtual int open (void *)
virtual int svc ()
virtual int close (u_long)

Protected Member Functions

virtual int register_worker_i ()
virtual void unregister_worker_i ()

Private Types

typedef ACE_SYNCH_MUTEX LockType
typedef ACE_Guard< LockTypeGuardType
typedef ACE_Condition< LockTypeConditionType

Private Attributes

LockType lock_
ConditionType condition_
int work_available_
int shutdown_

Member Typedef Documentation

typedef ACE_Condition<LockType> OpenDDS::DCPS::PerConnectionSynch::ConditionType [private]

typedef ACE_Guard<LockType> OpenDDS::DCPS::PerConnectionSynch::GuardType [private]

typedef ACE_SYNCH_MUTEX OpenDDS::DCPS::PerConnectionSynch::LockType [private]


Constructor & Destructor Documentation

ACE_INLINE OpenDDS::DCPS::PerConnectionSynch::PerConnectionSynch ( ThreadSynchResource synch_resource  ) 

OpenDDS::DCPS::PerConnectionSynch::~PerConnectionSynch (  )  [virtual]


Member Function Documentation

int OpenDDS::DCPS::PerConnectionSynch::close ( u_long   )  [virtual]

int OpenDDS::DCPS::PerConnectionSynch::open ( void *   )  [virtual]

int OpenDDS::DCPS::PerConnectionSynch::register_worker_i (  )  [protected, virtual]

The default implementation is to do nothing here. The subclass may override the implementation in order to do something when the worker registers. Returns 0 for success, -1 for failure.

Reimplemented from OpenDDS::DCPS::ThreadSynch.

int OpenDDS::DCPS::PerConnectionSynch::svc (  )  [virtual]

void OpenDDS::DCPS::PerConnectionSynch::unregister_worker_i (  )  [protected, virtual]

The default implementation is to do nothing here. The subclass may override the implementation in order to do something when the worker unregisters.

Reimplemented from OpenDDS::DCPS::ThreadSynch.

void OpenDDS::DCPS::PerConnectionSynch::work_available (  )  [virtual]

The ThreadSynchWorker would like to have its perform_work() called from the appropriate thread once the ThreadSynchResource claims that it is_ready_for_work().

Implements OpenDDS::DCPS::ThreadSynch.


Member Data Documentation

ConditionType OpenDDS::DCPS::PerConnectionSynch::condition_ [private]

LockType OpenDDS::DCPS::PerConnectionSynch::lock_ [private]

int OpenDDS::DCPS::PerConnectionSynch::shutdown_ [private]

int OpenDDS::DCPS::PerConnectionSynch::work_available_ [private]


The documentation for this class was generated from the following files:
Generated on Fri Nov 7 09:37:42 2008 for OpenDDS by  doxygen 1.4.7