Revert "[mono][debugger] First PR to implement iCorDebug on mono (#20757)"
[mono-project.git] / mono / mini / tasklets.h
blobdd8750f3f2f24cd9561fa52616ce5fb953518422
1 /**
2 * \file
3 */
5 #ifndef __MONO_TASKLETS_H__
6 #define __MONO_TASKLETS_H__
8 #include "mini.h"
10 #if !defined(ENABLE_NETCORE)
11 typedef struct {
12 MonoLMF *lmf;
13 gpointer top_sp;
14 MonoNativeThreadId thread_id;
15 MonoDomain *domain;
17 /* the instruction pointer and stack to return to on Restore */
18 gpointer return_ip;
19 gpointer return_sp;
21 /* the saved stack information */
22 int stack_alloc_size;
23 int stack_used_size;
24 /* pointer to GC memory */
25 gpointer saved_stack;
26 } MonoContinuation;
28 typedef void (*MonoContinuationRestore) (MonoContinuation *cont, int state, MonoLMF **lmf_addr);
30 void mono_tasklets_init (void);
31 void mono_tasklets_cleanup (void);
33 MonoContinuationRestore mono_tasklets_arch_restore (void);
35 #endif /* ENABLE_NETCORE */
37 #endif /* __MONO_TASKLETS_H__ */