|
rippled
|
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 | maxStrongValue |
| static constexpr CountType | maxWeakValue |
| static constexpr CountType | checkStrongMaxValue = maxStrongValue - 32 |
| Put an extra margin to detect when running up against limits. | |
| static constexpr CountType | checkWeakMaxValue = maxWeakValue - 32 |
Unpack the count and tag fields from the packed atomic integer form.
Definition at line 215 of file IntrusiveRefCounts.h.
|
noexcept |
Definition at line 440 of file IntrusiveRefCounts.h.
|
noexcept |
Definition at line 453 of file IntrusiveRefCounts.h.
|
noexcept |
Convert back to the packed integer form.
Definition at line 465 of file IntrusiveRefCounts.h.
| CountType ripple::IntrusiveRefCounts::RefCountPair::strong |
Definition at line 217 of file IntrusiveRefCounts.h.
| CountType ripple::IntrusiveRefCounts::RefCountPair::weak |
Definition at line 218 of file IntrusiveRefCounts.h.
| FieldType ripple::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 225 of file IntrusiveRefCounts.h.
| FieldType ripple::IntrusiveRefCounts::RefCountPair::partialDestroyFinishedBit {0} |
The partialDestroyFinishedBit is set to on when the partial destroy function has finished.
Definition at line 229 of file IntrusiveRefCounts.h.
|
staticconstexpr |
Definition at line 237 of file IntrusiveRefCounts.h.
|
staticconstexpr |
Definition at line 239 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 245 of file IntrusiveRefCounts.h.
|
staticconstexpr |
Definition at line 246 of file IntrusiveRefCounts.h.