OpenDDS  Snapshot(2023/04/28-20:55)
PoolSynchStrategy.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 "PoolSynchStrategy.h"
10 #include "PoolSynch.h"
11 
12 #if !defined (__ACE_INLINE__)
13 #include "PoolSynchStrategy.inl"
14 #endif /* __ACE_INLINE__ */
15 
17 {
18  DBG_ENTRY_LVL("PoolSynchStrategy","~PoolSynchStrategy",6);
19 }
20 
23  ThreadSynchResource* synch_resource,
24  long /* priority */,
25  long /* scheduler */)
26 {
27  DBG_ENTRY_LVL("PoolSynchStrategy","create_synch_object",6);
28  PoolSynch* synch_object = new PoolSynch(this,synch_resource);
29 
30  // TBD - We need to remember the synch_object here, because if this
31  // PoolSynchStrategy (an active object) is shutdown, it will
32  // need these... right? Or is it the other way around? In any
33  // regard, we know that the PoolSynch needs a pointer to us
34  // because we are the active object.
35 
36  return synch_object;
37 }
38 
39 int
41 {
42  DBG_ENTRY_LVL("PoolSynchStrategy","open",6);
43  // TBD
44  return 0;
45 }
46 
47 int
49 {
50  // Future: ThreadStatus.
51  DBG_ENTRY_LVL("PoolSynchStrategy","svc",6);
52  // TBD
53  return 0;
54 }
55 
56 int
58 {
59  DBG_ENTRY_LVL("PoolSynchStrategy","close",6);
60  // TBD
61  return 0;
62 }
virtual ThreadSynch * create_synch_object(ThreadSynchResource *synch_resource, long priority, long scheduler)
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68