trait Atomics extends scala.scalajs.js.Object with StObject
- Annotations
- @JSType() @native()
- Source
- Atomics.scala
- Alphabetic
- By Inheritance
- Atomics
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- def add(typedArray: scala.scalajs.js.typedarray.Uint8Array, index: Double, value: Double): Double
- def add(typedArray: scala.scalajs.js.typedarray.Uint32Array, index: Double, value: Double): Double
- def add(typedArray: scala.scalajs.js.typedarray.Uint16Array, index: Double, value: Double): Double
- def add(typedArray: scala.scalajs.js.typedarray.Int8Array, index: Double, value: Double): Double
Adds a value to the value at the given position in the array, returning the original value.
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.
- def add(typedArray: scala.scalajs.js.typedarray.Int32Array, index: Double, value: Double): Double
- def add(typedArray: scala.scalajs.js.typedarray.Int16Array, index: Double, value: Double): Double
- def add(typedArray: BigUint64Array, index: Double, value: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
- def add(typedArray: BigInt64Array, index: Double, value: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
Adds a value to the value at the given position in the array, returning the original value.
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.
- def and(typedArray: scala.scalajs.js.typedarray.Uint8Array, index: Double, value: Double): Double
- def and(typedArray: scala.scalajs.js.typedarray.Uint32Array, index: Double, value: Double): Double
- def and(typedArray: scala.scalajs.js.typedarray.Uint16Array, index: Double, value: Double): Double
- def and(typedArray: scala.scalajs.js.typedarray.Int8Array, index: Double, value: Double): Double
Stores the bitwise AND of a value with the value at the given position in the array, returning the original value.
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.
- def and(typedArray: scala.scalajs.js.typedarray.Int32Array, index: Double, value: Double): Double
- def and(typedArray: scala.scalajs.js.typedarray.Int16Array, index: Double, value: Double): Double
- def and(typedArray: BigUint64Array, index: Double, value: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
- def and(typedArray: BigInt64Array, index: Double, value: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
Stores the bitwise AND of a value with the value at the given position in the array, returning the original value.
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.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def compareExchange(typedArray: scala.scalajs.js.typedarray.Uint8Array, index: Double, expectedValue: Double, replacementValue: Double): Double
- def compareExchange(typedArray: scala.scalajs.js.typedarray.Uint32Array, index: Double, expectedValue: Double, replacementValue: Double): Double
- def compareExchange(typedArray: scala.scalajs.js.typedarray.Uint16Array, index: Double, expectedValue: Double, replacementValue: Double): Double
- def compareExchange(typedArray: scala.scalajs.js.typedarray.Int8Array, index: Double, expectedValue: Double, replacementValue: Double): Double
Replaces the value at the given position in the array if the original value equals the given expected value, returning the original value.
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.
- def compareExchange(typedArray: scala.scalajs.js.typedarray.Int32Array, index: Double, expectedValue: Double, replacementValue: Double): Double
- def compareExchange(typedArray: scala.scalajs.js.typedarray.Int16Array, index: Double, expectedValue: Double, replacementValue: Double): Double
- def compareExchange(typedArray: BigUint64Array, index: Double, expectedValue: scala.scalajs.js.BigInt, replacementValue: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
- def compareExchange(typedArray: BigInt64Array, index: Double, expectedValue: scala.scalajs.js.BigInt, replacementValue: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
Replaces the value at the given position in the array if the original value equals the given expected value, returning the original value.
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.
- final def eq(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef → Any
- def exchange(typedArray: scala.scalajs.js.typedarray.Uint8Array, index: Double, value: Double): Double
- def exchange(typedArray: scala.scalajs.js.typedarray.Uint32Array, index: Double, value: Double): Double
- def exchange(typedArray: scala.scalajs.js.typedarray.Uint16Array, index: Double, value: Double): Double
- def exchange(typedArray: scala.scalajs.js.typedarray.Int8Array, index: Double, value: Double): Double
Replaces the value at the given position in the array, returning the original value.
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.
- def exchange(typedArray: scala.scalajs.js.typedarray.Int32Array, index: Double, value: Double): Double
- def exchange(typedArray: scala.scalajs.js.typedarray.Int16Array, index: Double, value: Double): Double
- def exchange(typedArray: BigUint64Array, index: Double, value: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
- def exchange(typedArray: BigInt64Array, index: Double, value: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
Replaces the value at the given position in the array, returning the original value.
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.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hasOwnProperty(v: scala.Predef.String): scala.Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: scala.Boolean
- Definition Classes
- Any
- def isLockFree(size: Double): scala.Boolean
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. - def isPrototypeOf(v: scala.scalajs.js.Object): scala.Boolean
- Definition Classes
- Object
- def load(typedArray: scala.scalajs.js.typedarray.Uint8Array, index: Double): Double
- def load(typedArray: scala.scalajs.js.typedarray.Uint32Array, index: Double): Double
- def load(typedArray: scala.scalajs.js.typedarray.Uint16Array, index: Double): Double
- def load(typedArray: scala.scalajs.js.typedarray.Int8Array, index: Double): Double
Returns the value at the given position in the 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.
- def load(typedArray: scala.scalajs.js.typedarray.Int32Array, index: Double): Double
- def load(typedArray: scala.scalajs.js.typedarray.Int16Array, index: Double): Double
- def load(typedArray: BigUint64Array, index: Double): scala.scalajs.js.BigInt
- def load(typedArray: BigInt64Array, index: Double): scala.scalajs.js.BigInt
Returns the value at the given position in the 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.
- final def ne(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def notify(typedArray: scala.scalajs.js.typedarray.Int32Array, index: Double, count: Double): Double
- def notify(typedArray: scala.scalajs.js.typedarray.Int32Array, index: Double): Double
Wakes up sleeping agents that are waiting on the given index of the array, returning the number of agents that were awoken.
Wakes up sleeping agents that are waiting on the given index of the array, returning the number of agents that were awoken.
- typedArray
A shared Int32Array.
- index
The position in the typedArray to wake up on.
- def notify(typedArray: BigInt64Array, index: Double, count: Double): Double
- def notify(typedArray: BigInt64Array, index: Double): Double
Wakes up sleeping agents that are waiting on the given index of the array, returning the number of agents that were awoken.
Wakes up sleeping agents that are waiting on the given index of the array, returning the number of agents that were awoken.
- typedArray
A shared BigInt64Array.
- index
The position in the typedArray to wake up on.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def or(typedArray: scala.scalajs.js.typedarray.Uint8Array, index: Double, value: Double): Double
- def or(typedArray: scala.scalajs.js.typedarray.Uint32Array, index: Double, value: Double): Double
- def or(typedArray: scala.scalajs.js.typedarray.Uint16Array, index: Double, value: Double): Double
- def or(typedArray: scala.scalajs.js.typedarray.Int8Array, index: Double, value: Double): Double
Stores the bitwise OR of a value with the value at the given position in the array, returning the original value.
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.
- def or(typedArray: scala.scalajs.js.typedarray.Int32Array, index: Double, value: Double): Double
- def or(typedArray: scala.scalajs.js.typedarray.Int16Array, index: Double, value: Double): Double
- def or(typedArray: BigUint64Array, index: Double, value: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
- def or(typedArray: BigInt64Array, index: Double, value: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
Stores the bitwise OR of a value with the value at the given position in the array, returning the original value.
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.
- def propertyIsEnumerable(v: scala.Predef.String): scala.Boolean
- Definition Classes
- Object
- def store(typedArray: scala.scalajs.js.typedarray.Uint8Array, index: Double, value: Double): Double
- def store(typedArray: scala.scalajs.js.typedarray.Uint32Array, index: Double, value: Double): Double
- def store(typedArray: scala.scalajs.js.typedarray.Uint16Array, index: Double, value: Double): Double
- def store(typedArray: scala.scalajs.js.typedarray.Int8Array, index: Double, value: Double): Double
Stores a value at the given position in the array, returning the new value.
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.
- def store(typedArray: scala.scalajs.js.typedarray.Int32Array, index: Double, value: Double): Double
- def store(typedArray: scala.scalajs.js.typedarray.Int16Array, index: Double, value: Double): Double
- def store(typedArray: BigUint64Array, index: Double, value: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
- def store(typedArray: BigInt64Array, index: Double, value: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
Stores a value at the given position in the array, returning the new value.
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.
- def sub(typedArray: scala.scalajs.js.typedarray.Uint8Array, index: Double, value: Double): Double
- def sub(typedArray: scala.scalajs.js.typedarray.Uint32Array, index: Double, value: Double): Double
- def sub(typedArray: scala.scalajs.js.typedarray.Uint16Array, index: Double, value: Double): Double
- def sub(typedArray: scala.scalajs.js.typedarray.Int8Array, index: Double, value: Double): Double
Subtracts a value from the value at the given position in the array, returning the original value.
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.
- def sub(typedArray: scala.scalajs.js.typedarray.Int32Array, index: Double, value: Double): Double
- def sub(typedArray: scala.scalajs.js.typedarray.Int16Array, index: Double, value: Double): Double
- def sub(typedArray: BigUint64Array, index: Double, value: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
- def sub(typedArray: BigInt64Array, index: Double, value: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
Subtracts a value from the value at the given position in the array, returning the original value.
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.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- val toStringTag: stdStrings.Atomics
- Annotations
- @JSName(js.Symbol.toStringTag)
- def valueOf(): Any
- Definition Classes
- Object
- def wait(typedArray: scala.scalajs.js.typedarray.Int32Array, index: Double, value: Double, timeout: Double): |[|[ok, not-equal], timed-out]
- def wait(typedArray: scala.scalajs.js.typedarray.Int32Array, index: Double, value: Double): |[|[ok, not-equal], timed-out]
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". - def wait(typedArray: BigInt64Array, index: Double, value: scala.scalajs.js.BigInt, timeout: Double): |[|[ok, not-equal], timed-out]
- def wait(typedArray: BigInt64Array, index: Double, value: scala.scalajs.js.BigInt): |[|[ok, not-equal], timed-out]
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". - final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def xor(typedArray: scala.scalajs.js.typedarray.Uint8Array, index: Double, value: Double): Double
- def xor(typedArray: scala.scalajs.js.typedarray.Uint32Array, index: Double, value: Double): Double
- def xor(typedArray: scala.scalajs.js.typedarray.Uint16Array, index: Double, value: Double): Double
- def xor(typedArray: scala.scalajs.js.typedarray.Int8Array, index: Double, value: Double): Double
Stores the bitwise XOR of a value with the value at the given position in the array, returning the original value.
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.
- def xor(typedArray: scala.scalajs.js.typedarray.Int32Array, index: Double, value: Double): Double
- def xor(typedArray: scala.scalajs.js.typedarray.Int16Array, index: Double, value: Double): Double
- def xor(typedArray: BigUint64Array, index: Double, value: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
- def xor(typedArray: BigInt64Array, index: Double, value: scala.scalajs.js.BigInt): scala.scalajs.js.BigInt
Stores the bitwise XOR of a value with the value at the given position in the array, returning the original value.
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.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated