| 140 | } |
| 141 | |
| 142 | DDS::InstanceHandle_t EntityImpl::get_entity_instance_handle(const GUID_t& id, |
| 143 | const RcHandle<DomainParticipantImpl>& participant) |
| 144 | { |
| 145 | ACE_GUARD_RETURN(ACE_Thread_Mutex, g, lock_, DDS::HANDLE_NIL); |
| 146 | |
| 147 | if (instance_handle_ != DDS::HANDLE_NIL) { |
| 148 | return instance_handle_; |
| 149 | } |
| 150 | |
| 151 | if (!participant) { |
| 152 | return DDS::HANDLE_NIL; |
| 153 | } |
| 154 | |
| 155 | participant_for_instance_handle_ = participant; |
| 156 | return instance_handle_ = participant->assign_handle(id); |
| 157 | } |
| 158 | |
| 159 | } // namespace DCPS |
| 160 | } // namespace OpenDDS |
nothing calls this directly
no test coverage detected