TD3 II.2 Manage processes counter

This commit is contained in:
Yorick Barbanneau 2021-12-16 15:31:30 +01:00
parent 479d37133c
commit dcb11cf311
3 changed files with 24 additions and 2 deletions

View file

@ -86,6 +86,7 @@ void do_ThreadExit(){
DEBUG('x', "Decrease numbers of Threads:%d\n",currentThread->space->threads);
if ( currentThread->space->threads == 0 ){
DEBUG('x', "Delete Userspace, no more Threads\n");
// No threads remains, desallocate addrspace
delete currentThread->space;
currentThread->space = NULL;