OpenDDS::DCPS::PoolSynchStrategy Class Reference

#include <PoolSynchStrategy.h>

Inheritance diagram for OpenDDS::DCPS::PoolSynchStrategy:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PoolSynchStrategy ()
virtual ~PoolSynchStrategy ()
virtual ThreadSynchcreate_synch_object (ThreadSynchResource *synch_resource, long priority, int scheduler)
virtual int open (void *)
virtual int svc ()
virtual int close (u_long)
void operator delete (void *ptr)

Private Types

typedef ACE_SYNCH_MUTEX LockType
typedef ACE_Guard< LockTypeGuardType
typedef ACE_Condition< LockTypeConditionType

Private Attributes

LockType lock_
ConditionType condition_

Detailed Description

Definition at line 20 of file PoolSynchStrategy.h.


Member Typedef Documentation

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

Definition at line 41 of file PoolSynchStrategy.h.

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

Definition at line 40 of file PoolSynchStrategy.h.

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

Definition at line 39 of file PoolSynchStrategy.h.


Constructor & Destructor Documentation

ACE_INLINE OpenDDS::DCPS::PoolSynchStrategy::PoolSynchStrategy (  ) 

Definition at line 11 of file PoolSynchStrategy.inl.

References DBG_ENTRY_LVL.

00012   : condition_(this->lock_)
00013 {
00014   DBG_ENTRY_LVL("PoolSynchStrategy","PoolSynchStrategy",6);
00015 }

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

Definition at line 16 of file PoolSynchStrategy.cpp.

References DBG_ENTRY_LVL.

00017 {
00018   DBG_ENTRY_LVL("PoolSynchStrategy","~PoolSynchStrategy",6);
00019 }


Member Function Documentation

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

Definition at line 56 of file PoolSynchStrategy.cpp.

References DBG_ENTRY_LVL.

00057 {
00058   DBG_ENTRY_LVL("PoolSynchStrategy","close",6);
00059   // TBD
00060   return 0;
00061 }

OpenDDS::DCPS::ThreadSynch * OpenDDS::DCPS::PoolSynchStrategy::create_synch_object ( ThreadSynchResource synch_resource,
long  priority,
int  scheduler 
) [virtual]

Implements OpenDDS::DCPS::ThreadSynchStrategy.

Definition at line 22 of file PoolSynchStrategy.cpp.

References DBG_ENTRY_LVL.

00026 {
00027   DBG_ENTRY_LVL("PoolSynchStrategy","create_synch_object",6);
00028   PoolSynch* synch_object = new PoolSynch(this,synch_resource);
00029 
00030   // TBD - We need to remember the synch_object here, because if this
00031   //       PoolSynchStrategy (an active object) is shutdown, it will
00032   //       need these... right?  Or is it the other way around?  In any
00033   //       regard, we know that the PoolSynch needs a pointer to us
00034   //       because we are the active object.
00035 
00036   return synch_object;
00037 }

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

Definition at line 40 of file PoolSynchStrategy.cpp.

References DBG_ENTRY_LVL.

00041 {
00042   DBG_ENTRY_LVL("PoolSynchStrategy","open",6);
00043   // TBD
00044   return 0;
00045 }

void OpenDDS::DCPS::PoolSynchStrategy::operator delete ( void *  ptr  )  [inline]

Definition at line 36 of file PoolSynchStrategy.h.

00036 { ThreadSynchStrategy::operator delete(ptr); }

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

Definition at line 48 of file PoolSynchStrategy.cpp.

References DBG_ENTRY_LVL.

00049 {
00050   DBG_ENTRY_LVL("PoolSynchStrategy","svc",6);
00051   // TBD
00052   return 0;
00053 }


Member Data Documentation

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

Definition at line 44 of file PoolSynchStrategy.h.

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

Definition at line 43 of file PoolSynchStrategy.h.


The documentation for this class was generated from the following files:
Generated on Fri Feb 12 20:06:27 2016 for OpenDDS by  doxygen 1.4.7