Module interrupt_registry

Module interrupt_registry 

Source
Expand description

Implements the necessary infrastructure for interrupting running WASM code via OS signals.

This module is meant to be used from within the wasmer crate. Embedders should not call any of the functions here; instead, they should go through [wasmer::Store::get_interrupter].

Modules§

unix 🔒

Structs§

InterruptInstallGuard
Uninstalls interrupt state when dropped

Enums§

InstallError
InterruptError

Functions§

install
Install interrupt state for the given store. Note that this function may be called more than once, and correctly maintains a stack of stores for which the state is installed.
interrupt
Interrupt the store with the given ID. Best effort is made to ensure interrupts are handled. However, there is no guarantee; under rare circumstances, it is possible for the interrupt to be missed. One such case is when the target thread is about to call WASM code but has not yet made the call.
is_interrupted
Returns true if the store with the given ID has already been interrupted.