projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Move problem 1-2 (join) into project 2 as the "wait" system call.
[pintos-anon]
/
src
/
threads
/
synch.c
diff --git
a/src/threads/synch.c
b/src/threads/synch.c
index 10a7dad5d022f7a294e5cce95d0a3dfb1148be73..1504d98859f8b54cc6c6688f5ed1de3227cd97f8 100644
(file)
--- a/
src/threads/synch.c
+++ b/
src/threads/synch.c
@@
-231,7
+231,7
@@
lock_name (const struct lock *lock)
/* One semaphore in a list. */
struct semaphore_elem
{
-
list_elem elem;
/* List element. */
+
struct list_elem elem;
/* List element. */
struct semaphore semaphore; /* This semaphore. */
};