OpenDDS  Snapshot(2023/04/28-20:55)
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 
15 {
16  DBG_ENTRY_LVL("DataLinkCleanupTask", "DataLinkCleanupTask",6);
17 }
18 
20 {
21  DBG_ENTRY_LVL("DataLinkCleanupTask", "~DataLinkCleanupTask",6);
22 }
23 
24 void
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 }
virtual void execute(DataLink_rch &dl)
Handle reconnect requests.
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68