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:
Bahadir Balban
2009-10-31 23:28:54 +02:00
parent 850c645d77
commit 0f537ea1f5
4 changed files with 38 additions and 26 deletions

View File

@@ -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;