OpenDDS  Snapshot(2023/04/28-20:55)
Public Member Functions | Protected Member Functions | List of all members
OpenDDS::DCPS::PoolSynch Class Reference

#include <PoolSynch.h>

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

Public Member Functions

 PoolSynch (PoolSynchStrategy *strategy, ThreadSynchResource *synch_resource)
 
virtual ~PoolSynch ()
 
virtual void work_available ()
 
- Public Member Functions inherited from OpenDDS::DCPS::ThreadSynch
virtual ~ThreadSynch ()
 
int register_worker (ThreadSynchWorker &worker)
 
void unregister_worker ()
 Our owner, the worker_, is breaking our relationship. More...
 

Protected Member Functions

virtual void unregister_worker_i ()
 
- Protected Member Functions inherited from OpenDDS::DCPS::ThreadSynch
 ThreadSynch (ThreadSynchResource *resource)
 
int wait_on_clogged_resource ()
 
virtual int register_worker_i ()
 
WeakRcHandle< ThreadSynchWorkerworker ()
 Access the worker implementation directly. More...
 

Detailed Description

Definition at line 22 of file PoolSynch.h.

Constructor & Destructor Documentation

◆ PoolSynch()

ACE_INLINE OpenDDS::DCPS::PoolSynch::PoolSynch ( PoolSynchStrategy strategy,
ThreadSynchResource synch_resource 
)

Definition at line 11 of file PoolSynch.inl.

References DBG_ENTRY_LVL.

13  : ThreadSynch(synch_resource)
14 {
15  DBG_ENTRY_LVL("PoolSynch","PoolSynch",6);
16  // TBD
17 }
ThreadSynch(ThreadSynchResource *resource)
Definition: ThreadSynch.inl:14
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68

◆ ~PoolSynch()

OpenDDS::DCPS::PoolSynch::~PoolSynch ( )
virtual

Definition at line 17 of file PoolSynch.cpp.

References DBG_ENTRY_LVL.

18 {
19  DBG_ENTRY_LVL("PoolSynch","~PoolSynch",6);
20  // TBD
21 }
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68

Member Function Documentation

◆ unregister_worker_i()

void OpenDDS::DCPS::PoolSynch::unregister_worker_i ( )
protectedvirtual

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.

Definition at line 31 of file PoolSynch.cpp.

References DBG_ENTRY_LVL.

32 {
33  DBG_ENTRY_LVL("PoolSynch","unregister_worker_i",6);
34  // TBD
35 }
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68

◆ work_available()

void OpenDDS::DCPS::PoolSynch::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.

Definition at line 24 of file PoolSynch.cpp.

References DBG_ENTRY_LVL.

25 {
26  DBG_ENTRY_LVL("PoolSynch","work_available",6);
27  // TBD
28 }
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68

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