rt: Detach pthreads before exiting

Joinable pthreads need to be either joined or detached and we no
longer join with the scheduler threads.
This commit is contained in:
Brian Anderson
2012-02-09 16:13:56 -08:00
parent 5d8d591ffc
commit 81e1564a7d
3 changed files with 16 additions and 2 deletions

View File

@@ -319,6 +319,7 @@ rust_task_thread::create_task(rust_task *spawner, const char *name,
void rust_task_thread::run() {
this->start_main_loop();
detach();
sched->release_task_thread();
}