OpenDDS
Snapshot(2023/04/28-20:55)
dds
DCPS
transport
framework
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
16
OpenDDS::DCPS::PoolSynchStrategy::~PoolSynchStrategy
()
17
{
18
DBG_ENTRY_LVL
(
"PoolSynchStrategy"
,
"~PoolSynchStrategy"
,6);
19
}
20
21
OpenDDS::DCPS::ThreadSynch
*
22
OpenDDS::DCPS::PoolSynchStrategy::create_synch_object
(
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
40
OpenDDS::DCPS::PoolSynchStrategy::open
(
void
*)
41
{
42
DBG_ENTRY_LVL
(
"PoolSynchStrategy"
,
"open"
,6);
43
// TBD
44
return
0;
45
}
46
47
int
48
OpenDDS::DCPS::PoolSynchStrategy::svc
()
49
{
50
// Future: ThreadStatus.
51
DBG_ENTRY_LVL
(
"PoolSynchStrategy"
,
"svc"
,6);
52
// TBD
53
return
0;
54
}
55
56
int
57
OpenDDS::DCPS::PoolSynchStrategy::close
(u_long)
58
{
59
DBG_ENTRY_LVL
(
"PoolSynchStrategy"
,
"close"
,6);
60
// TBD
61
return
0;
62
}
OpenDDS::DCPS::PoolSynch
Definition:
PoolSynch.h:22
OpenDDS::DCPS::PoolSynchStrategy::~PoolSynchStrategy
virtual ~PoolSynchStrategy()
Definition:
PoolSynchStrategy.cpp:16
OpenDDS::DCPS::PoolSynchStrategy::create_synch_object
virtual ThreadSynch * create_synch_object(ThreadSynchResource *synch_resource, long priority, long scheduler)
Definition:
PoolSynchStrategy.cpp:22
OpenDDS::DCPS::PoolSynchStrategy::svc
virtual int svc()
Definition:
PoolSynchStrategy.cpp:48
OpenDDS::DCPS::PoolSynchStrategy::open
virtual int open(void *)
Definition:
PoolSynchStrategy.cpp:40
PoolSynchStrategy.h
OpenDDS::DCPS::PoolSynchStrategy::close
virtual int close(u_long)
Definition:
PoolSynchStrategy.cpp:57
OpenDDS::DCPS::ThreadSynchResource
Definition:
ThreadSynchResource.h:19
DBG_ENTRY_LVL
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition:
EntryExit.h:68
DdsDcps_pch.h
PoolSynchStrategy.inl
PoolSynch.h
OpenDDS::DCPS::ThreadSynch
Definition:
ThreadSynch.h:34
Generated by
1.8.13