| 76 | } |
| 77 | |
| 78 | void |
| 79 | DCPS_IR_Participant::takeOwnership() |
| 80 | { |
| 81 | /// Publish an update with our ownership. |
| 82 | if (this->um_ && (this->isBitPublisher() == false)) { |
| 83 | this->um_->create( |
| 84 | Update::OwnershipData( |
| 85 | this->domain_->get_id(), |
| 86 | this->id_, |
| 87 | this->federationId_.id())); |
| 88 | |
| 89 | if (OpenDDS::DCPS::DCPS_debug_level > 4) { |
| 90 | OpenDDS::DCPS::RepoIdConverter converter(id_); |
| 91 | ACE_DEBUG((LM_DEBUG, |
| 92 | ACE_TEXT("(%P|%t) DCPS_IR_Participant::take_ownership: ") |
| 93 | ACE_TEXT("pushing ownership %C in domain %d.\n"), |
| 94 | std::string(converter).c_str(), |
| 95 | this->domain_->get_id())); |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | // And now handle our internal ownership processing. |
| 100 | this->changeOwner(this->federationId_.id(), this->federationId_.id()); |
| 101 | } |
| 102 | |
| 103 | void |
| 104 | DCPS_IR_Participant::changeOwner(long sender, long owner) |
no test coverage detected