@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Atomics")
public final class AtomicsNamespace
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
int |
add(IntegerTypedArray typedArray,
int index,
int value)
Add the provided value to the existing value at the specified index of the array.
|
int |
and(IntegerTypedArray typedArray,
int index,
int value)
Computes a bitwise AND on the value at the specified index of the array with the provided value.
|
int |
compareExchange(IntegerTypedArray typedArray,
int index,
int expectedValue,
int replacementValue)
Stores a value at the specified index of the array, if it equals a value.
|
int |
exchange(IntegerTypedArray typedArray,
int index,
int value)
Stores a value at the specified index of the array.
|
int |
isLockFree(int size)
An optimization primitive that can be used to determine whether to use locks or atomic operations.
|
int |
load(IntegerTypedArray typedArray,
int index)
Returns the value at the specified index of the array.
|
int |
or(IntegerTypedArray typedArray,
int index,
int value)
Computes a bitwise OR on the value at the specified index of the array with the provided value.
|
int |
store(IntegerTypedArray typedArray,
int index,
int value)
Stores a value at the specified index of the array.
|
int |
sub(IntegerTypedArray typedArray,
int index,
int value)
Subtracts a value at the specified index of the array.
|
java.lang.String |
wait_(IntegerTypedArray typedArray,
int index,
int value)
Verifies that the specified index of the array still contains a value and sleeps awaiting or times out.
|
java.lang.String |
wait_(IntegerTypedArray typedArray,
int index,
int value,
int timeout)
Verifies that the specified index of the array still contains a value and sleeps awaiting or times out.
|
int |
xor(IntegerTypedArray typedArray,
int index,
int value)
Computes a bitwise XOR on the value at the specified index of the array with the provided value.
|
public int add(@Nonnull
IntegerTypedArray typedArray,
int index,
int value)
public int and(@Nonnull
IntegerTypedArray typedArray,
int index,
int value)
public int compareExchange(@Nonnull
IntegerTypedArray typedArray,
int index,
int expectedValue,
int replacementValue)
public int exchange(@Nonnull
IntegerTypedArray typedArray,
int index,
int value)
public int isLockFree(int size)
public int load(@Nonnull
IntegerTypedArray typedArray,
int index)
public int or(@Nonnull
IntegerTypedArray typedArray,
int index,
int value)
public int store(@Nonnull
IntegerTypedArray typedArray,
int index,
int value)
public int sub(@Nonnull
IntegerTypedArray typedArray,
int index,
int value)
@JsMethod(name="wait") @AtomicWaitResult @Nonnull public java.lang.String wait_(@Nonnull IntegerTypedArray typedArray, int index, int value, int timeout)
@JsMethod(name="wait") @AtomicWaitResult @Nonnull public java.lang.String wait_(@Nonnull IntegerTypedArray typedArray, int index, int value)
public int xor(@Nonnull
IntegerTypedArray typedArray,
int index,
int value)