From f39e64d56ab4929be5985d4a64020d2223706d96 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sat, 4 Feb 2012 14:54:10 -0800 Subject: rt: Change the scheme used for terminating the kernel Instead of joining on the scheduler threads, instead keep a count of active schedulers. When there are no more schedulers raise a signal for the main thread to continue. This will be required once schedulers can be added and removed from the running kernel. --- src/rt/rust_task_thread.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rt/rust_task_thread.cpp') diff --git a/src/rt/rust_task_thread.cpp b/src/rt/rust_task_thread.cpp index a3bf729ad2f..6251d5c24c1 100644 --- a/src/rt/rust_task_thread.cpp +++ b/src/rt/rust_task_thread.cpp @@ -296,6 +296,7 @@ rust_task_thread::create_task(rust_task *spawner, const char *name, void rust_task_thread::run() { this->start_main_loop(); + sched->release_task_thread(); } #ifndef _WIN32 -- cgit 1.4.1-3-g733a5