| 145 | } |
| 146 | |
| 147 | void |
| 148 | DDSApp::remove(const DDS::DomainParticipant_var& participant) |
| 149 | { |
| 150 | participants_.erase(participant.in()); |
| 151 | if (participant.in() == default_participant_.in()) { |
| 152 | if (participants_.empty()) { |
| 153 | default_participant_ = DDS::DomainParticipant_var(); |
| 154 | } |
| 155 | else { |
| 156 | ACE_DEBUG((LM_DEBUG, |
| 157 | "NOTE: removed default participant and assigning new " |
| 158 | "default\n")); |
| 159 | default_participant_ = participants_.begin()->second; |
| 160 | } |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | void |
| 165 | DDSApp::determine_participant(DDS::DomainParticipant_var& part) |