InterlockedSpin Methods |
The InterlockedSpin type exposes the following members.
Name | Description | |
---|---|---|
ConditionallySwapT, TReturn | INTERNAL!
Atomically updates the int reference by calling updateIfTrue to get the new value.
updateIfTrue returns a Tuple<should update, the new int value, the return value>
If the first item in the tuple is true, the value is updated, and the third value of the tuple is returned.
Note that updateIfTrue may be called many times so it should be idempotent.
Remarks Note! Part of internal API. Breaking changes may occur without notice. Use at own risk. | |
SwapT | INTERNAL!
Atomically updates the object reference by calling updater to get the new value.
Note that updater may be called many times so it should be idempotent.
Remarks Note! Part of internal API. Breaking changes may occur without notice. Use at own risk. |