From 4ed90f58f8928c4defcf62ca86164262ea53b522 Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Wed, 20 Jan 2016 23:48:10 -0500 Subject: [PATCH] Added blocked/runnable macros --- include/cyclone/types.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/cyclone/types.h b/include/cyclone/types.h index 1d9558cc..5f6468e7 100644 --- a/include/cyclone/types.h +++ b/include/cyclone/types.h @@ -427,6 +427,10 @@ void gc_wait_handshake(); void gc_start_collector(); void gc_mutator_thread_blocked(gc_thread_data *thd, object cont); void gc_mutator_thread_runnable(gc_thread_data *thd, object result); +#define set_thread_blocked(d, c) \ + gc_mutator_thread_blocked(((gc_thread_data *)d), (r)) +#define return_runnable(d, r) \ + gc_mutator_thread_runnable(((gc_thread_data *)d), (r)) 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 */