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

Method changeOwnership

dds/InfoRepo/DCPSInfo_i.cpp:151–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151bool
152TAO_DDS_DCPSInfo_i::changeOwnership(
153 DDS::DomainId_t domainId,
154 const OpenDDS::DCPS::GUID_t& participantId,
155 long sender,
156 long owner)
157{
158 ACE_GUARD_RETURN(ACE_Recursive_Thread_Mutex, guard, this->lock_, false);
159
160 // Grab the domain.
161 DCPS_IR_Domain_Map::iterator where = this->domains_.find(domainId);
162
163 if (where == this->domains_.end()) {
164 return false;
165 }
166
167 // Grab the participant.
168 DCPS_IR_Participant* participant
169 = where->second->participant(participantId);
170
171 if (0 == participant) {
172 return false;
173 }
174
175 // Establish the ownership.
176 participant->changeOwner(sender, owner);
177 return true;
178}
179
180OpenDDS::DCPS::TopicStatus TAO_DDS_DCPSInfo_i::assert_topic(
181 OpenDDS::DCPS::GUID_t_out topicId,

Callers 4

processCreateMethod · 0.80
processDeferredMethod · 0.80
processUpdateQos1Method · 0.80
processDeleteMethod · 0.80

Calls 4

changeOwnerMethod · 0.80
findMethod · 0.45
endMethod · 0.45
participantMethod · 0.45

Tested by

no test coverage detected