|
xrpld
|
Unpack the count and tag fields from the packed atomic integer form. More...

Public Member Functions | |
| RefCountPair (FieldType v) noexcept | |
| RefCountPair (CountType s, CountType w) noexcept | |
| FieldType | combinedValue () const noexcept |
| Convert back to the packed integer form. | |
Public Attributes | |
| CountType | strong |
| CountType | weak |
| FieldType | partialDestroyStartedBit {0} |
| The partialDestroyStartedBit is set to on when the partial destroy function is started. | |
| FieldType | partialDestroyFinishedBit {0} |
| The partialDestroyFinishedBit is set to on when the partial destroy function has finished. | |
Static Public Attributes | |
| static constexpr CountType | kMaxStrongValue |
| static constexpr CountType | kMaxWeakValue |
| static constexpr CountType | kCheckStrongMaxValue = kMaxStrongValue - 32 |
| Put an extra margin to detect when running up against limits. | |
| static constexpr CountType | kCheckWeakMaxValue = kMaxWeakValue - 32 |
Unpack the count and tag fields from the packed atomic integer form.
Definition at line 197 of file IntrusiveRefCounts.h.
|
noexcept |
Definition at line 419 of file IntrusiveRefCounts.h.
|
noexcept |
Definition at line 431 of file IntrusiveRefCounts.h.
|
nodiscardnoexcept |
Convert back to the packed integer form.
Definition at line 443 of file IntrusiveRefCounts.h.
| CountType xrpl::IntrusiveRefCounts::RefCountPair::strong |
Definition at line 199 of file IntrusiveRefCounts.h.
| CountType xrpl::IntrusiveRefCounts::RefCountPair::weak |
Definition at line 200 of file IntrusiveRefCounts.h.
| FieldType xrpl::IntrusiveRefCounts::RefCountPair::partialDestroyStartedBit {0} |
The partialDestroyStartedBit is set to on when the partial destroy function is started.
It is not a boolean; it is a uint32 with all bits zero with the possible exception of the partialDestroyStartedMask bit. This is done so it can be directly masked into the combinedValue.
Definition at line 208 of file IntrusiveRefCounts.h.
| FieldType xrpl::IntrusiveRefCounts::RefCountPair::partialDestroyFinishedBit {0} |
The partialDestroyFinishedBit is set to on when the partial destroy function has finished.
Definition at line 213 of file IntrusiveRefCounts.h.
|
staticconstexpr |
Definition at line 223 of file IntrusiveRefCounts.h.
|
staticconstexpr |
Definition at line 225 of file IntrusiveRefCounts.h.
|
staticconstexpr |
Put an extra margin to detect when running up against limits.
This is only used in debug code, and is useful if we reduce the number of bits in the strong and weak counts (to 16 and 14 bits).
Definition at line 232 of file IntrusiveRefCounts.h.
|
staticconstexpr |
Definition at line 233 of file IntrusiveRefCounts.h.