MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / get_entity_instance_handle

Method get_entity_instance_handle

dds/DCPS/EntityImpl.cpp:142–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142DDS::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

Callers

nothing calls this directly

Calls 1

assign_handleMethod · 0.80

Tested by

no test coverage detected