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

Method processCreate

dds/InfoRepo/FederatorManagerImpl_updates.cpp:578–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

576//
577
578void
579ManagerImpl::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
615void
616ManagerImpl::processCreate(const PublicationUpdate* sample, const DDS::SampleInfo* /* info */)

Callers 6

initializeOwnerMethod · 0.95
initializeTopicMethod · 0.95
initializeParticipantMethod · 0.95
initializePublicationMethod · 0.95
processSampleMethod · 0.80

Calls 7

processDeferredMethod · 0.95
changeOwnershipMethod · 0.80
idMethod · 0.45
add_publicationMethod · 0.45
add_subscriptionMethod · 0.45
add_topicMethod · 0.45

Tested by

no test coverage detected