Wasmtime
|
#include <wasm.h>
Go to the source code of this file.
Functions | |
wasm_engine_t * | wasmtime_engine_clone (wasm_engine_t *engine) |
Create a new reference to the same underlying engine. More... | |
void | wasmtime_engine_increment_epoch (wasm_engine_t *engine) |
Increments the engine-local epoch variable. More... | |
Wasmtime-specific extensions to wasm_engine_t.
wasm_engine_t * wasmtime_engine_clone | ( | wasm_engine_t * | engine | ) |
Create a new reference to the same underlying engine.
This function clones the reference-counted pointer to the internal object, and must be freed using wasm_engine_delete.
void wasmtime_engine_increment_epoch | ( | wasm_engine_t * | engine | ) |
Increments the engine-local epoch variable.
This function will increment the engine's current epoch which can be used to force WebAssembly code to trap if the current epoch goes beyond the wasmtime_store_t configured epoch deadline.
This function is safe to call from any thread, and it is also async-signal-safe.
See also wasmtime_config_epoch_interruption_set.