Skip to main content

Module atomics

Module atomics 

Source
Expand description

ECMAScript Atomics オブジェクト(ES2017〜ES2025)。

ホストの単一スレッド環境向け最小準拠実装。整数型 TypedArray(Int8Array・Uint8Array・ Int16Array・Uint16Array・Int32Array・Uint32Array・BigInt64Array・BigUint64Array)上で 仕様どおりの引数検証・型変換・ビット幅丸め・返値を提供する。

Enums§

AtomicOp 🔒

Functions§

apply_rmw 🔒
atomics_add 🔒
atomics_and 🔒
atomics_compare_exchange 🔒
atomics_exchange 🔒
atomics_is_lock_free 🔒
atomics_load 🔒
atomics_notify 🔒
Atomics.notify(typedArray, index[, count])(単一スレッド環境では待機エージェント 0 件のため 0 を返す)。
atomics_or 🔒
atomics_pause 🔒
Atomics.pause([iterationNumber])(ES2025)。
atomics_rmw 🔒
atomics_store 🔒
atomics_sub 🔒
atomics_wait 🔒
Atomics.wait(typedArray, index, value[, timeout])(単一スレッドホスト用のノンブロック最小準拠)。
atomics_xor 🔒
coerce_atomic_arg 🔒
elem_bits_to_value 🔒
read_u64_elem 🔒
to_bigint_val 🔒
ToBigInt(v)(BigInt64Array / BigUint64Array 用)。Number/Undefined/Null/Symbol は TypeError。
to_integer_or_infinity_f64 🔒
値を ToIntegerOrInfinity で整数化する(Symbol/BigInt は TypeError)。
validate_atomic_access 🔒
インデックス検証(ValidateAtomicAccess)。ECMA-262 に従い ToIndex の前に長さを取得する。
validate_integer_ta 🔒
整数型 TypedArray の検証(ECMA-262 ValidateIntegerTypedArray)。 waitable が真の場合は Int32Array / BigInt64Array のみ許可。 require_shared が真の場合は背後バッファが SharedArrayBuffer であることを要求する。
write_u64_elem 🔒