WasmMemoryWaitCallback

class WasmMemoryWaitCallback(waitersStore: SharedMemoryWaiterListStore, logger: Logger) : TruffleObject(source)

Сallback to be called from the GraalVM Wasm runtime when atomic_wait64 / atomic_wait32 Wasm functions are executed.

Suspends the calling thread if the memory pointed to by addr is equal to expectedValue until a notification is received from WasmMemoryNotifyCallback, or until the timeout expires.

See also

Constructors

Link copied to clipboard
constructor(waitersStore: SharedMemoryWaiterListStore, logger: Logger)

Types

Functions

Link copied to clipboard
fun execute(arguments: Array<Any>): Any
Link copied to clipboard