From 2c58ceb889efd1483f3986827134135d6d977a4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Fri, 12 Mar 2021 16:13:28 +0100 Subject: implement wait --- src/threads/thread.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/threads/thread.h') diff --git a/src/threads/thread.h b/src/threads/thread.h index fdaba60..4b33d7d 100644 --- a/src/threads/thread.h +++ b/src/threads/thread.h @@ -30,10 +30,10 @@ struct parent_child { struct list_elem elem; // owned by the parent - // struct semaphore exit_sema; + struct semaphore exit_sema; + int exit_status; struct lock l; - int exit_status; int alive_count; tid_t child_tid; }; @@ -116,6 +116,7 @@ struct thread /* Owned by userprog/process.c. */ uint32_t *pagedir; /* Page directory. */ struct file **fds; /* Pointer to array of file descriptors. */ + bool load_success; struct parent_child *parent; // one parent struct list children; // multiple children -- cgit v1.2.1