From 7ce9b1e3894b7cbf9c4dd56ea92c29be71e9feac Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Thu, 21 Jan 2016 21:57:42 -0500 Subject: [PATCH] WIP --- include/cyclone/types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/cyclone/types.h b/include/cyclone/types.h index 4a53f090..49e0cf80 100644 --- a/include/cyclone/types.h +++ b/include/cyclone/types.h @@ -431,6 +431,10 @@ void gc_mutator_thread_runnable(gc_thread_data *thd, object result); gc_mutator_thread_blocked(((gc_thread_data *)d), (c)) #define return_thread_runnable(d, r) \ gc_mutator_thread_runnable(((gc_thread_data *)d), (r)) +//#define do_with_blocked_thread(data, cont, result, body) \ +// set_thread_blocked((data), (cont)); \ +// body \ +// return_thread_runnable((data), (result)); gc_heap *gc_get_heap(); int gc_minor(void *data, object low_limit, object high_limit, closure cont, object *args, int num_args); /* Mutation table to support minor GC write barrier */