RTI Connext Modern C++ API  Version 6.1.0
dds::core::policy::OwnershipKind_def Struct Reference

The definition of the dds::core::safe_enum OwnershipKind. More...

#include <PolicyKind.hpp>

Public Types

enum  type {
  SHARED,
  EXCLUSIVE
}
 The underlying enum type. More...
 

Detailed Description

The definition of the dds::core::safe_enum OwnershipKind.

Member Enumeration Documentation

◆ type

The underlying enum type.

Enumerator
SHARED 

[default] Indicates shared ownership for each instance.

Multiple writers are allowed to update the same instance and all the updates are made available to the readers. In other words there is no concept of an owner for the instances.

This is the default behavior if the OWNERSHIP policy is not specified or supported.

EXCLUSIVE 

Indicates each instance can only be owned by one dds::pub::DataWriter, but the owner of an instance can change dynamically.

The selection of the owner is controlled by the setting of the OWNERSHIP_STRENGTH policy. The owner is always set to be the highest-strength dds::pub::DataWriter object among the ones currently active (as determined by the LIVELINESS).