diff runtime/context.h @ 140:c14698c512f1

Untested addition of Pause/Resume
author Mike Pavone <pavone@retrodev.com>
date Sat, 20 Nov 2010 20:03:25 +0000
parents a68e6828d896
children f2cb85c53ced
line wrap: on
line diff
--- a/runtime/context.h	Fri Nov 19 04:04:14 2010 -0500
+++ b/runtime/context.h	Sat Nov 20 20:03:25 2010 +0000
@@ -16,15 +16,23 @@
 } stackchunk;
 
 typedef struct context {
-	stackchunk   *stack_begin;
-	stackchunk   *current_stack;
-	transaction  *transaction;
+	stackchunk     *stack_begin;
+	stackchunk     *current_stack;
+	transaction    *transaction;
+	struct context *runafter;
+	calldata       *resume_cdata;
+	int32_t        resumeable;
+	int32_t        start_func;
 } context;
 
+Box(context *,ct,Context);
 stackchunk * new_stack();
 context * new_context();
 void * alloc_stack(context * ct, uint32_t size);
 calldata * alloc_cdata(context * ct, calldata * lastframe, uint32_t num_params);
 void free_stack(context * ct, void * data);
 void free_context(context * c);
+void cqueue_init();
+context * get_cqueue();
+int32_t put_cqueue(context * ct);
 #endif //_CONTEXT_H_