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: