Kernel - Added (possibly buggy) support for WaitTID(TID>0)
[tpg/acess2.git] / KernelLand / Kernel / include / threads_int.h
index 578fdcf..4845264 100644 (file)
@@ -71,7 +71,10 @@ struct sThread
        struct sProcess *Process;       //!< Thread Group / Process
        struct sThread  *Parent;        //!< Parent Thread
        char    *ThreadName;    //!< Name of thread
-       
+
+       struct sThread  *LastDeadChild; //!< Last child to die (will have the \a DeadChildren lock)
+       tMutex  DeadChildLock;  //!< Lock to prevent clobbering of \a LastDeadChild, acquired by child, released by parent
+
        // --- arch/proc.c's responsibility
        //! Kernel Stack Base
        tVAddr  KernelStack;

UCC git Repository :: git.ucc.asn.au