From 74b818ec2fac84709aeaa41460ddaae37d40acaf Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Mon, 14 Dec 2015 21:58:41 -0500 Subject: [PATCH] Added an 'end thread' stub --- runtime.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/runtime.c b/runtime.c index 32b4caf4..14bea76e 100644 --- a/runtime.c +++ b/runtime.c @@ -2494,6 +2494,12 @@ void Cyc_start_thread(gc_thread_data *thd) exit(0); } +void Cyc_end_thread(gc_thread_data *thd) { + // TODO: call pthread_exit? + // alternatively could call longjmp with a null continuation, but that seems + // more complicated than necessary +} + // Mark globals as part of the tracing collector // This is called by the collector thread void gc_mark_globals()