mirror of
https://github.com/drasko/codezero.git
synced 2026-01-20 14:53:16 +01:00
Wait on working.
Multi-threaded apps can now wait on children to destroy. WAIT_ON is useful when a child exists with an exit code and the pager of the child does not want to take the hassle of destorying it via an ipc. It provides an alternative method of synchronous thread destruction, where the child destroys itself directly rather than the parent issuing a destroy on it explicitly.
This commit is contained in:
@@ -98,6 +98,9 @@ struct ktcb {
|
||||
/* Number of locks the task currently has acquired */
|
||||
int nlocks;
|
||||
|
||||
/* Task exit code */
|
||||
unsigned int exit_code;
|
||||
|
||||
/* Page table information */
|
||||
struct address_space *space;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user