Functions and constants functions
Free functions and constants of C++ helpers.
- Use
import ThinkMeta.ConcurrentTasks.Cpp.Atomic128;- Namespace
ThinkMeta::ConcurrentTasks::Cpp- Platforms
- Windows, Linux
Functions
Cpp::CompareExchange128
Replaces destination with desired if it still holds expected.
Syntax
inline bool CompareExchange128(
Atomic128& destination,
Atomic128& expected,
const Atomic128& desired
) noexcept;Parameters
destinationAtomic128&- The word; it must be 16-byte aligned.
expectedAtomic128&- The value the word is expected to hold; on failure it receives the value found.
desiredconst Atomic128&- The new value.
Return value
Type: bool
true if the word was replaced; false if it held something else.
Remarks
Sequentially consistent (a full barrier), as the instruction is.
Cpp::LoadLow
Cpp::LoadHigh
Generated from ThinkMeta.ConcurrentTasks.API @ da816bc (2026-11-06).