| 576 | // |
| 577 | |
| 578 | void |
| 579 | ManagerImpl::processCreate(const OwnerUpdate* sample, const DDS::SampleInfo* /* info */) |
| 580 | { |
| 581 | if (OpenDDS::DCPS::DCPS_debug_level > 9) { |
| 582 | OpenDDS::DCPS::RepoIdConverter converter(sample->participant); |
| 583 | ACE_DEBUG((LM_DEBUG, |
| 584 | ACE_TEXT("(%P|%t) Federator::ManagerImpl::processCreate( OwnerUpdate): ") |
| 585 | ACE_TEXT("repo %d - [ domain %d/ participant %C/ sender %d/ owner %d ]\n"), |
| 586 | this->id().id(), |
| 587 | sample->domain, |
| 588 | std::string(converter).c_str(), |
| 589 | sample->sender, |
| 590 | sample->owner)); |
| 591 | } |
| 592 | |
| 593 | // We could generate an error message here. Instead we let action be irrelevant. |
| 594 | if (false == this->info_->changeOwnership(sample->domain, |
| 595 | sample->participant, |
| 596 | sample->sender, |
| 597 | sample->owner)) { |
| 598 | { |
| 599 | ACE_GUARD(ACE_Thread_Mutex, |
| 600 | guard, |
| 601 | this->deferred_lock_); |
| 602 | this->deferredOwnerships_.push_back(*sample); |
| 603 | } |
| 604 | |
| 605 | if (OpenDDS::DCPS::DCPS_debug_level > 9) { |
| 606 | ACE_DEBUG((LM_DEBUG, |
| 607 | ACE_TEXT("(%P|%t) Federator::ManagerImpl::processCreate( OwnerUpdate): ") |
| 608 | ACE_TEXT("deferred update.\n"))); |
| 609 | } |
| 610 | } |
| 611 | |
| 612 | this->processDeferred(); |
| 613 | } |
| 614 | |
| 615 | void |
| 616 | ManagerImpl::processCreate(const PublicationUpdate* sample, const DDS::SampleInfo* /* info */) |
no test coverage detected