1 /**
2  * \file wasmtime/engine.h
3  *
4  * Wasmtime-specific extensions to #wasm_engine_t.
5  */
6 
7 #ifndef WASMTIME_ENGINE_H
8 #define WASMTIME_ENGINE_H
9 
10 #include <wasm.h>
11 
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 
16 /**
17  * \brief Increments the engine-local epoch variable.
18  *
19  * This function will increment the engine's current epoch which can be used to
20  * force WebAssembly code to trap if the current epoch goes beyond the
21  * #wasmtime_store_t configured epoch deadline.
22  *
23  * This function is safe to call from any thread, and it is also
24  * async-signal-safe.
25  *
26  * See also #wasmtime_config_epoch_interruption_set.
27  */
28 WASM_API_EXTERN void wasmtime_engine_increment_epoch(wasm_engine_t *engine);
29 
30 #ifdef __cplusplus
31 } // extern "C"
32 #endif
33 
34 #endif // WASMTIME_ENGINE_H
35