Stores the bitwise AND of a value with the value at the given position in the array, returning the original value. Until this atomic operation completes, any other read or write operation against the array will block.
Replaces the value at the given position in the array if the original value equals the given expected value, returning the original value. Until this atomic operation completes, any other read or write operation against the array will block.
Replaces the value at the given position in the array, returning the original value. Until this atomic operation completes, any other read or write operation against the array will block.
Returns a value indicating whether high-performance algorithms can use atomic operations
(true
) or must use locks (false
) for the given number of bytes-per-element of a typed
array.
Returns the value at the given position in the array. Until this atomic operation completes, any other read or write operation against the array will block.
Wakes up sleeping agents that are waiting on the given index of the array, returning the number of agents that were awoken.
Stores the bitwise OR of a value with the value at the given position in the array, returning the original value. Until this atomic operation completes, any other read or write operation against the array will block.
Stores a value at the given position in the array, returning the new value. Until this atomic operation completes, any other read or write operation against the array will block.
Subtracts a value from the value at the given position in the array, returning the original value. Until this atomic operation completes, any other read or write operation against the array will block.
If the value at the given position in the array is equal to the provided value, the current
agent is put to sleep causing execution to suspend until the timeout expires (returning
"timed-out"
) or until the agent is awoken (returning "ok"
); otherwise, returns
"not-equal"
.
Stores the bitwise XOR of a value with the value at the given position in the array, returning the original value. Until this atomic operation completes, any other read or write operation against the array will block.
Adds a value to the value at the given position in the array, returning the original value. Until this atomic operation completes, any other read or write operation against the array will block.