wasmtime_config_epoch_interruption_set function

  1. @Native<Void Function(Pointer<wasm_config_t>, Bool)>(ffi.Pointer<wasm_config_t>, ffi.Bool)>()
void wasmtime_config_epoch_interruption_set(
  1. Pointer<wasm_config_t> arg0,
  2. bool arg1
)

\brief Whether or not epoch-based interruption is enabled for generated code.

This setting is false by default. When enabled wasm code will check the current epoch periodically and abort if the current epoch is beyond a store-configured limit.

Note that when this setting is enabled all stores will immediately trap and need to have their epoch deadline otherwise configured with #wasmtime_context_set_epoch_deadline.

Note that the current epoch is engine-local and can be incremented with #wasmtime_engine_increment_epoch.

Implementation

@ffi.Native<ffi.Void Function(ffi.Pointer<wasm_config_t>, ffi.Bool)>()
external void wasmtime_config_epoch_interruption_set(
  ffi.Pointer<wasm_config_t> arg0,
  bool arg1,
);