mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +00:00
thread: fix release of proc refcounts on multithreaded applications
This commit is contained in:
@@ -96,8 +96,9 @@ __attribute__((noreturn)) void sched_threadexit() {
|
|||||||
|
|
||||||
proc_exit();
|
proc_exit();
|
||||||
mm_destroy_context(oldctx);
|
mm_destroy_context(oldctx);
|
||||||
PROC_RELEASE(proc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PROC_RELEASE(proc);
|
||||||
}
|
}
|
||||||
|
|
||||||
interrupt_set(false);
|
interrupt_set(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user