Changed ETask allocation to be done with AllocVec() to let ETask structure survive...
commitf585d52fecb53591f2e3dec0c53ee5d6dbf96c22
authorsszymczy <sszymczy@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Thu, 25 Sep 2008 17:08:25 +0000 (25 17:08 +0000)
committersszymczy <sszymczy@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Thu, 25 Sep 2008 17:08:25 +0000 (25 17:08 +0000)
tree9feed92b0c44b0c5e7eea53a732734bbee1fd123
parent87435f441cec78e43bd25fcf0a4eeb8a45f2231d
Changed ETask allocation to be done with AllocVec() to let ETask structure survive task exit.
Unified ETask initialization and cleanup in all ports. Initialization is done with InitETask() function, cleanup with new CleanupETask() function.
Initialization and cleanup functions take care of allocating unique task identifiers, maintaining child-parent relationship between tasks and notifying parent of children death if PRF_NOTIFYONDEATH flag is set in child.
Fixed problem with child ETask not found by FindChild() call during ChildFree().

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@29530 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
15 files changed:
arch/all-mingw32/exec/newaddtask.c
arch/all-mingw32/exec/remtask.c
arch/i386-pc/exec/exec_init.c
arch/i386-pc/exec/newaddtask.c
arch/i386-pc/exec/remtask.c
arch/ppc-sam440/exec/exec_init.c
arch/ppc-sam440/exec/newaddtask.c
arch/ppc-sam440/exec/remtask.c
arch/x86_64-pc/exec/exec_init.c
arch/x86_64-pc/exec/newaddtask.c
arch/x86_64-pc/exec/remtask.c
rom/exec/exec_util.c
rom/exec/exec_util.h
rom/exec/newaddtask.c
rom/exec/remtask.c