| 149 | } |
| 150 | |
| 151 | bool |
| 152 | TAO_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 | |
| 180 | OpenDDS::DCPS::TopicStatus TAO_DDS_DCPSInfo_i::assert_topic( |
| 181 | OpenDDS::DCPS::GUID_t_out topicId, |
no test coverage detected