comparison runtime/context.h @ 141:f2cb85c53ced

Fix Pause/Resume and rewrite Call Async in Rhope rather than C
author Mike Pavone <pavone@retrodev.com>
date Sat, 20 Nov 2010 17:48:22 -0500
parents c14698c512f1
children ba35ab624ec2
comparison
equal deleted inserted replaced
140:c14698c512f1 141:f2cb85c53ced
20 stackchunk *current_stack; 20 stackchunk *current_stack;
21 transaction *transaction; 21 transaction *transaction;
22 struct context *runafter; 22 struct context *runafter;
23 calldata *resume_cdata; 23 calldata *resume_cdata;
24 int32_t resumeable; 24 int32_t resumeable;
25 int32_t start_func;
26 } context; 25 } context;
27 26
28 Box(context *,ct,Context); 27 Box(context *,ct,Context);
29 stackchunk * new_stack(); 28 stackchunk * new_stack();
30 context * new_context(); 29 context * new_context();
33 void free_stack(context * ct, void * data); 32 void free_stack(context * ct, void * data);
34 void free_context(context * c); 33 void free_context(context * c);
35 void cqueue_init(); 34 void cqueue_init();
36 context * get_cqueue(); 35 context * get_cqueue();
37 int32_t put_cqueue(context * ct); 36 int32_t put_cqueue(context * ct);
37 object * make_Context(context * ct);
38 #endif //_CONTEXT_H_ 38 #endif //_CONTEXT_H_