[wasm] Add a --runtime-arg= argument to runtime-tests.js to allow setting runtime...
[mono-project.git] / mono / mini / tasklets.h
blobfc6f0b8178a9c6144c778aaa22c9297478b7bf14
1 /**
2 * \file
3 */
5 #ifndef __MONO_TASKLETS_H__
6 #define __MONO_TASKLETS_H__
8 #include "mini.h"
10 typedef struct {
11 MonoLMF *lmf;
12 gpointer top_sp;
13 MonoNativeThreadId thread_id;
14 MonoDomain *domain;
16 /* the instruction pointer and stack to return to on Restore */
17 gpointer return_ip;
18 gpointer return_sp;
20 /* the saved stack information */
21 int stack_alloc_size;
22 int stack_used_size;
23 /* pointer to GC memory */
24 gpointer saved_stack;
25 } MonoContinuation;
27 typedef void (*MonoContinuationRestore) (MonoContinuation *cont, int state, MonoLMF **lmf_addr);
29 void mono_tasklets_init (void);
30 void mono_tasklets_cleanup (void);
32 MonoContinuationRestore mono_tasklets_arch_restore (void);
34 #endif /* __MONO_TASKLETS_H__ */