Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

32 lines
733 B
C

#ifndef __MONO_TASKLETS_H__
#define __MONO_TASKLETS_H__
#include "mini.h"
typedef struct {
MonoLMF *lmf;
gpointer top_sp;
gsize thread_id;
MonoDomain *domain;
/* the instruction pointer and stack to return to on Restore */
gpointer return_ip;
gpointer return_sp;
/* the saved stack information */
int stack_alloc_size;
int stack_used_size;
/* pointer to GC memory */
gpointer saved_stack;
} MonoContinuation;
typedef void (*MonoContinuationRestore) (MonoContinuation *cont, int state, MonoLMF **lmf_addr);
void mono_tasklets_init (void) MONO_INTERNAL;
void mono_tasklets_cleanup (void) MONO_INTERNAL;
MonoContinuationRestore mono_tasklets_arch_restore (void) MONO_INTERNAL;
#endif /* __MONO_TASKLETS_H__ */