OpenDDS
Snapshot(2023/04/28-20:55)
dds
DCPS
transport
framework
DataLinkCleanupTask.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
10
#include "
DataLinkCleanupTask.h
"
11
12
#include "
EntryExit.h
"
13
14
OpenDDS::DCPS::DataLinkCleanupTask::DataLinkCleanupTask
()
15
{
16
DBG_ENTRY_LVL
(
"DataLinkCleanupTask"
,
"DataLinkCleanupTask"
,6);
17
}
18
19
OpenDDS::DCPS::DataLinkCleanupTask::~DataLinkCleanupTask
()
20
{
21
DBG_ENTRY_LVL
(
"DataLinkCleanupTask"
,
"~DataLinkCleanupTask"
,6);
22
}
23
24
void
25
OpenDDS::DCPS::DataLinkCleanupTask::execute
(
DataLink_rch
& dl)
26
{
27
DBG_ENTRY_LVL
(
"DataLinkCleanupTask"
,
"execute"
,6);
28
29
// Assumes that the DataLink is safe for now.
30
// ciju: I don't believe there are any thread issues here. If any
31
// the risk seems minimal.
32
// Not sure about the above statement. Associations could change while
33
// the Id sequence is being created. That could be trouble.
34
35
// Yan: It should be safe to remove now as we made the changes to take a
36
// snapshot of associations in datalink when reconnect fails and removes
37
// associations based on the image. It won't remove the new associations
38
// added to the datalink.
39
dl->clear_associations();
40
}
EntryExit.h
OpenDDS::DCPS::DataLinkCleanupTask::~DataLinkCleanupTask
virtual ~DataLinkCleanupTask()
Definition:
DataLinkCleanupTask.cpp:19
OpenDDS::DCPS::DataLinkCleanupTask::execute
virtual void execute(DataLink_rch &dl)
Handle reconnect requests.
Definition:
DataLinkCleanupTask.cpp:25
DataLinkCleanupTask.h
DBG_ENTRY_LVL
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition:
EntryExit.h:68
DdsDcps_pch.h
OpenDDS::DCPS::DataLinkCleanupTask::DataLinkCleanupTask
DataLinkCleanupTask()
Definition:
DataLinkCleanupTask.cpp:14
OpenDDS::DCPS::RcHandle
Definition:
RcHandle_T.h:24
Generated by
1.8.13