elemental2.core.Atomics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of elemental2-core Show documentation
Show all versions of elemental2-core Show documentation
Thin Java abstractions for the standard built-in objects for Javascript.
package elemental2.core;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
@JsType(isNative = true, namespace = JsPackage.GLOBAL)
public class Atomics {
public static native double add(TypedArray typedArray, int index, double value);
public static native double and(TypedArray typedArray, int index, double value);
public static native double compareExchange(
TypedArray typedArray, int index, double expectedValue, double replacementValue);
public static native double exchange(TypedArray typedArray, int index, double value);
public static native boolean isLockFree(int size);
public static native double load(TypedArray typedArray, int index);
public static native double or(TypedArray typedArray, int index, double value);
public static native double store(TypedArray typedArray, int index, double value);
public static native double sub(TypedArray typedArray, int index, double value);
public static native JsString wait(
Int32Array typedArray, int index, double value, double timeout);
public static native JsString wait(Int32Array typedArray, int index, double value);
public static native double wake(Int32Array typedArray, int index, double count);
public static native double xor(TypedArray typedArray, int index, double value);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy