Added blocked/runnable macros

This commit is contained in:
Justin Ethier 2016-01-20 23:48:10 -05:00
parent 3bbf64d440
commit 4ed90f58f8

View file

@ -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 */