Update spec file to 4.5 profile
[mono-project.git] / mono / mini / tasklets.h
blob8275628a9e63ab563f0f95b0f92b718c418b8329
1 #ifndef __MONO_TASKLETS_H__
2 #define __MONO_TASKLETS_H__
4 #include "mini.h"
6 typedef struct {
7 MonoLMF *lmf;
8 gpointer top_sp;
9 gsize thread_id;
10 MonoDomain *domain;
12 /* the instruction pointer and stack to return to on Restore */
13 gpointer return_ip;
14 gpointer return_sp;
16 /* the saved stack information */
17 int stack_alloc_size;
18 int stack_used_size;
19 /* pointer to GC memory */
20 gpointer saved_stack;
21 } MonoContinuation;
23 typedef void (*MonoContinuationRestore) (MonoContinuation *cont, int state, MonoLMF **lmf_addr);
25 void mono_tasklets_init (void) MONO_INTERNAL;
26 void mono_tasklets_cleanup (void) MONO_INTERNAL;
28 MonoContinuationRestore mono_tasklets_arch_restore (void) MONO_INTERNAL;
30 #endif /* __MONO_TASKLETS_H__ */