OpenDDS  Snapshot(2023/04/25-14:16)
Functions
OpenDDS::DCPS::Util Namespace Reference

Functions

bool DescendingOwnershipStrengthSort (const OwnershipManager::WriterInfo &w1, const OwnershipManager::WriterInfo &w2)
 

Function Documentation

◆ DescendingOwnershipStrengthSort()

bool OpenDDS::DCPS::Util::DescendingOwnershipStrengthSort ( const OwnershipManager::WriterInfo w1,
const OwnershipManager::WriterInfo w2 
)

Definition at line 25 of file OwnershipManager.cpp.

References OpenDDS::DCPS::OwnershipManager::WriterInfo::ownership_strength_.

Referenced by OpenDDS::DCPS::OwnershipManager::remove_owner(), and OpenDDS::DCPS::OwnershipManager::select_owner().

27 {
28  return w1.ownership_strength_ > w2.ownership_strength_;
29 }