Commit e7dcb863 authored by Joseph Noir's avatar Joseph Noir

Fix thread count

Decrement count when thread is destroyed
parent e5727da3
...@@ -9,6 +9,14 @@ namespace caf { ...@@ -9,6 +9,14 @@ namespace caf {
thread::~thread() { thread::~thread() {
// not needed, as our thread is always detachted // not needed, as our thread is always detachted
printf("thread::~thread thread is dead\n");
//sched_task_exit();
//dINT();
//sched_threads[sched_active_pid] = NULL;
sched_num_threads--;
//sched_set_status((tcb_t *)sched_active_thread, STATUS_STOPPED);
//sched_active_thread = NULL;
//cpu_switch_context_exit();
} }
void thread::join() { void thread::join() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment