PoolSynchStrategy.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 "PoolSynchStrategy.h"
00010 #include "PoolSynch.h"
00011 
00012 #if !defined (__ACE_INLINE__)
00013 #include "PoolSynchStrategy.inl"
00014 #endif /* __ACE_INLINE__ */
00015 
00016 OpenDDS::DCPS::PoolSynchStrategy::~PoolSynchStrategy()
00017 {
00018   DBG_ENTRY_LVL("PoolSynchStrategy","~PoolSynchStrategy",6);
00019 }
00020 
00021 OpenDDS::DCPS::ThreadSynch*
00022 OpenDDS::DCPS::PoolSynchStrategy::create_synch_object(
00023   ThreadSynchResource* synch_resource,
00024   long                 /* priority */,
00025   int                  /* scheduler */)
00026 {
00027   DBG_ENTRY_LVL("PoolSynchStrategy","create_synch_object",6);
00028   PoolSynch* synch_object = new PoolSynch(this,synch_resource);
00029 
00030   // TBD - We need to remember the synch_object here, because if this
00031   //       PoolSynchStrategy (an active object) is shutdown, it will
00032   //       need these... right?  Or is it the other way around?  In any
00033   //       regard, we know that the PoolSynch needs a pointer to us
00034   //       because we are the active object.
00035 
00036   return synch_object;
00037 }
00038 
00039 int
00040 OpenDDS::DCPS::PoolSynchStrategy::open(void*)
00041 {
00042   DBG_ENTRY_LVL("PoolSynchStrategy","open",6);
00043   // TBD
00044   return 0;
00045 }
00046 
00047 int
00048 OpenDDS::DCPS::PoolSynchStrategy::svc()
00049 {
00050   DBG_ENTRY_LVL("PoolSynchStrategy","svc",6);
00051   // TBD
00052   return 0;
00053 }
00054 
00055 int
00056 OpenDDS::DCPS::PoolSynchStrategy::close(u_long)
00057 {
00058   DBG_ENTRY_LVL("PoolSynchStrategy","close",6);
00059   // TBD
00060   return 0;
00061 }

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