OpenDDS  Snapshot(2023/04/28-20:55)
NullSynchStrategy.cpp
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #include "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/
9 #include "NullSynch.h"
10 #include "NullSynchStrategy.h"
11 
12 #include "EntryExit.h"
13 
15 {
16  DBG_ENTRY_LVL("NullSynchStrategy","NullSynchStrategy",6);
17 }
18 
20 {
21  DBG_ENTRY_LVL("NullSynchStrategy","~NullSynchStrategy",6);
22 }
23 
26  ThreadSynchResource* synch_resource,
27  long /* priority */,
28  long /* scheduler */)
29 {
30  DBG_ENTRY_LVL("NullSynchStrategy","create_synch_object",6);
31 
32  if (synch_resource != 0) {
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
LM_ERROR
virtual ThreadSynch * create_synch_object(ThreadSynchResource *synch_resource, long priority, long scheduler)