TD3 II.2 Manage processes counter
This commit is contained in:
parent
479d37133c
commit
dcb11cf311
3 changed files with 24 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue