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

#include <NullSynchStrategy.h>

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

Public Member Functions

 NullSynchStrategy ()
 
virtual ~NullSynchStrategy ()
 
virtual ThreadSynchcreate_synch_object (ThreadSynchResource *synch_resource, long priority, long scheduler)
 
- Public Member Functions inherited from OpenDDS::DCPS::ThreadSynchStrategy
virtual ~ThreadSynchStrategy ()
 
- Public Member Functions inherited from OpenDDS::DCPS::RcObject
virtual ~RcObject ()
 
virtual void _add_ref ()
 
virtual void _remove_ref ()
 
long ref_count () const
 
WeakObject_get_weak_object () const
 

Additional Inherited Members

- Protected Member Functions inherited from OpenDDS::DCPS::ThreadSynchStrategy
 ThreadSynchStrategy ()
 
- Protected Member Functions inherited from OpenDDS::DCPS::RcObject
 RcObject ()
 

Detailed Description

Definition at line 19 of file NullSynchStrategy.h.

Constructor & Destructor Documentation

◆ NullSynchStrategy()

OpenDDS::DCPS::NullSynchStrategy::NullSynchStrategy ( )

Definition at line 14 of file NullSynchStrategy.cpp.

References DBG_ENTRY_LVL.

15 {
16  DBG_ENTRY_LVL("NullSynchStrategy","NullSynchStrategy",6);
17 }
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68

◆ ~NullSynchStrategy()

OpenDDS::DCPS::NullSynchStrategy::~NullSynchStrategy ( )
virtual

Definition at line 19 of file NullSynchStrategy.cpp.

References DBG_ENTRY_LVL.

20 {
21  DBG_ENTRY_LVL("NullSynchStrategy","~NullSynchStrategy",6);
22 }
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68

Member Function Documentation

◆ create_synch_object()

OpenDDS::DCPS::ThreadSynch * OpenDDS::DCPS::NullSynchStrategy::create_synch_object ( ThreadSynchResource synch_resource,
long  priority,
long  scheduler 
)
virtual

Implements OpenDDS::DCPS::ThreadSynchStrategy.

Definition at line 25 of file NullSynchStrategy.cpp.

References ACE_ERROR, DBG_ENTRY_LVL, and LM_ERROR.

29 {
30  DBG_ENTRY_LVL("NullSynchStrategy","create_synch_object",6);
31 
32  if (synch_resource != 0) {
33  ACE_ERROR((LM_ERROR,
34  "(%P|%t) Coding Error - NullSynchStrategy::"
35  "create_synch_object() should always get a NULL pointer "
36  "(ThreadSynchResource*) argument.\n"));
37  }
38 
39  return new NullSynch(0);
40 }
#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: