DataLinkCleanupTask.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 
00010 #include "DataLinkCleanupTask.h"
00011 
00012 #include "dds/DCPS/transport/framework/EntryExit.h"
00013 
00014 OpenDDS::DCPS::DataLinkCleanupTask::DataLinkCleanupTask()
00015 {
00016   DBG_ENTRY_LVL("DataLinkCleanupTask", "DataLinkCleanupTask",6);
00017 }
00018 
00019 OpenDDS::DCPS::DataLinkCleanupTask::~DataLinkCleanupTask()
00020 {
00021   DBG_ENTRY_LVL("DataLinkCleanupTask", "~DataLinkCleanupTask",6);
00022 }
00023 
00024 void
00025 OpenDDS::DCPS::DataLinkCleanupTask::execute(DataLink_rch& dl)
00026 {
00027   DBG_ENTRY_LVL("DataLinkCleanupTask", "execute",6);
00028 
00029   // Assumes that the DataLink is safe for now.
00030   // ciju: I don't believe there are any thread issues here. If any
00031   // the risk seems minimal.
00032   // Not sure about the above statement. Associations could change while
00033   // the Id sequence is being created. That could be trouble.
00034 
00035   // Yan: It should be safe to remove now as we made the changes to take a
00036   // snapshot of associations in datalink when reconnect fails and removes
00037   // associations based on the image. It won't remove the new assiciations
00038   // added to the datalink.
00039   dl->clear_associations();
00040 }

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