NullSynchStrategy.cpp

Go to the documentation of this file.
00001 /*
00002  *
00003  *
00004  * Distributed under the OpenDDS License.
00005  * See: http://www.opendds.org/license.html
00006  */
00007 
00008 #include "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/
00009 #include "NullSynch.h"
00010 #include "NullSynchStrategy.h"
00011 
00012 #include "EntryExit.h"
00013 
00014 OpenDDS::DCPS::NullSynchStrategy::NullSynchStrategy()
00015 {
00016   DBG_ENTRY_LVL("NullSynchStrategy","NullSynchStrategy",6);
00017 }
00018 
00019 OpenDDS::DCPS::NullSynchStrategy::~NullSynchStrategy()
00020 {
00021   DBG_ENTRY_LVL("NullSynchStrategy","~NullSynchStrategy",6);
00022 }
00023 
00024 OpenDDS::DCPS::ThreadSynch*
00025 OpenDDS::DCPS::NullSynchStrategy::create_synch_object(
00026   ThreadSynchResource* synch_resource,
00027   long                 /* priority */,
00028   int                  /* scheduler */)
00029 {
00030   DBG_ENTRY_LVL("NullSynchStrategy","create_synch_object",6);
00031 
00032   if (synch_resource != 0) {
00033     ACE_ERROR((LM_ERROR,
00034                "(%P|%t) Coding Error - NullSynchStrategy::"
00035                "create_synch_object() should always get a NULL pointer "
00036                "(ThreadSynchResource*) argument.\n"));
00037   }
00038 
00039   return new NullSynch(0);
00040 }

Generated on Fri Feb 12 20:05:24 2016 for OpenDDS by  doxygen 1.4.7