From b9af99cb736da974d495e6e4904e599746407476 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sun, 19 Sep 2004 07:29:32 +0000 Subject: [PATCH] Comments. --- src/threads/thread.c | 2 +- src/threads/thread.h | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/threads/thread.c b/src/threads/thread.c index 8a55699..80c01fd 100644 --- a/src/threads/thread.c +++ b/src/threads/thread.c @@ -353,7 +353,7 @@ new_thread (const char *name, int priority) return t; } -/* Does basic initialization of T as a new, blocked thread named +/* Does basic initialization of T as a blocked thread named NAME. */ static void init_thread (struct thread *t, const char *name, int priority) diff --git a/src/threads/thread.h b/src/threads/thread.h index 0480293..56b84a7 100644 --- a/src/threads/thread.h +++ b/src/threads/thread.h @@ -86,7 +86,7 @@ typedef int tid_t; blocked state is on a semaphore wait list. */ struct thread { - /* These members are owned by thread.c. */ + /* Owned by thread.c. */ tid_t tid; /* Thread identifier. */ enum thread_status status; /* Thread state. */ char name[16]; /* Name (for debugging purposes). */ @@ -97,12 +97,12 @@ struct thread list_elem elem; /* List element. */ #ifdef USERPROG - /* These members are owned by userprog/addrspace.c. */ + /* Owned by userprog/addrspace.c. */ uint32_t *pagedir; /* Page directory. */ #endif - /* Marker to detect stack overflow. */ - unsigned magic; /* Always set to THREAD_MAGIC. */ + /* Owned by thread.c */ + unsigned magic; /* Detects stack overflow. */ }; void thread_init (void); -- 2.30.2