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

Method takeOwnership

dds/InfoRepo/DCPS_IR_Participant.cpp:78–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void
79DCPS_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
103void
104DCPS_IR_Participant::changeOwner(long sender, long owner)

Callers 2

attach_participantMethod · 0.80

Calls 6

isBitPublisherMethod · 0.95
changeOwnerMethod · 0.95
OwnershipDataClass · 0.85
createMethod · 0.45
get_idMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected