Add -ul option for limiting user pool size.
[pintos-anon] / src / threads / synch.h
index d21ecff08ca546473cbfc7d84229fa5d54310fab..ad8423891bad260215a77d0274dddfd75c960962 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef HEADER_SYNCH_H
-#define HEADER_SYNCH_H 1
+#ifndef THREADS_SYNCH_H
+#define THREADS_SYNCH_H
 
+#include <list.h>
 #include <stdbool.h>
-#include "list.h"
 
 /* A counting semaphore. */
 struct semaphore 
@@ -21,7 +21,6 @@ void sema_self_test (void);
 /* Lock. */
 struct lock 
   {
-    char name[16];              /* Name (for debugging purposes only). */
     struct thread *holder;      /* Thread holding lock (for debugging). */
     struct semaphore semaphore; /* Binary semaphore controlling access. */
   };
@@ -45,4 +44,4 @@ void cond_signal (struct condition *, struct lock *);
 void cond_broadcast (struct condition *, struct lock *);
 const char *cond_name (const struct condition *);
 
-#endif /* synch.h */
+#endif /* threads/synch.h */