atomicCompareExchange

void* atomicCompareExchange(overload void** dest, void* expected, void* value)

Atomically stores a pointer when the current value matches expected.

Returns

The value that was stored before the operation.

Symbol

atomicCompareExchangePtr

Parameters

overload void**
dest

The storage location to update.

void*
expected

The value that must currently be stored for the exchange to occur.

void*
value

The value to store when expected matches.

Generated with campc v0.6.0-preview.1+4dde68eca4014e9b19e7d7ad0fdae6b2036be640.