OpenDDS  Snapshot(2023/04/07-19:43)
Public Member Functions | List of all members
OpenDDS::DCPS::NullSynch Class Reference

#include <NullSynch.h>

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

Public Member Functions

 NullSynch (ThreadSynchResource *resource)
 
virtual ~NullSynch ()
 
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...
 

Additional Inherited Members

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

Detailed Description

Definition at line 19 of file NullSynch.h.

Constructor & Destructor Documentation

◆ NullSynch()

ACE_INLINE OpenDDS::DCPS::NullSynch::NullSynch ( ThreadSynchResource resource)

Definition at line 11 of file NullSynch.inl.

References DBG_ENTRY_LVL.

12  : ThreadSynch(0)
13 {
14  DBG_ENTRY_LVL("NullSynch","NullSynch",6);
15  ACE_UNUSED_ARG(resource);
16 }
ThreadSynch(ThreadSynchResource *resource)
Definition: ThreadSynch.inl:14
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68

◆ ~NullSynch()

OpenDDS::DCPS::NullSynch::~NullSynch ( )
virtual

Definition at line 16 of file NullSynch.cpp.

References DBG_ENTRY_LVL.

17 {
18  DBG_ENTRY_LVL("NullSynch","~NullSynch",6);
19 }
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68

Member Function Documentation

◆ work_available()

void OpenDDS::DCPS::NullSynch::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 22 of file NullSynch.cpp.

References ACE_ERROR, DBG_ENTRY_LVL, and LM_ERROR.

23 {
24  DBG_ENTRY_LVL("NullSynch","work_available",6);
25 
26  ACE_ERROR((LM_ERROR,
27  "(%P|%t) INTERNAL ERROR - NullSynch::work_available() "
28  "method should *NEVER* be called!\n"));
29 }
#define ACE_ERROR(X)
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68

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