| 184 | |
| 185 | |
| 186 | bool |
| 187 | OwnershipManager::is_owner(const DDS::InstanceHandle_t& instance_handle, |
| 188 | const GUID_t& pub_id) |
| 189 | { |
| 190 | ACE_GUARD_RETURN(ACE_Thread_Mutex, guard, instance_lock_, false); |
| 191 | |
| 192 | InstanceOwnershipWriterInfos::iterator iter |
| 193 | = instance_ownership_infos_.find(instance_handle); |
| 194 | if (iter != instance_ownership_infos_.end()) { |
| 195 | return iter->second.owner_.pub_id_ == pub_id; |
| 196 | } |
| 197 | |
| 198 | return false; |
| 199 | } |
| 200 | |
| 201 | |
| 202 | bool // owner unregister instance |
no test coverage detected