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

Method get_next_handle

dds/DCPS/DataReaderImpl.cpp:2289–2303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2287}
2288
2289DDS::InstanceHandle_t
2290DataReaderImpl::get_next_handle(const DDS::BuiltinTopicKey_t& key)
2291{
2292 RcHandle<DomainParticipantImpl> participant = this->participant_servant_.lock();
2293 if (!participant)
2294 return DDS::HANDLE_NIL;
2295
2296 if (is_bit()) {
2297 const GUID_t id = bit_key_to_guid(key);
2298 return participant->assign_handle(id);
2299
2300 } else {
2301 return participant->assign_handle();
2302 }
2303}
2304
2305void DataReaderImpl::return_handle(DDS::InstanceHandle_t handle)
2306{

Callers

nothing calls this directly

Calls 3

bit_key_to_guidFunction · 0.85
assign_handleMethod · 0.80
lockMethod · 0.45

Tested by

no test coverage detected