Expand description
ECMAScript Atomics オブジェクト(ES2017〜ES2025)。
ホストの単一スレッド環境向け最小準拠実装。整数型 TypedArray(Int8Array・Uint8Array・
Int16Array・Uint16Array・Int32Array・Uint32Array・BigInt64Array・BigUint64Array)上で
仕様どおりの引数検証・型変換・ビット幅丸め・返値を提供する。
Enums§
- Atomic
Op 🔒
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