X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Fsynch.h;h=ad8423891bad260215a77d0274dddfd75c960962;hb=2f06c82f2c3e67ab8748a743cef1990740cab70e;hp=c8ac2f446508a793962d455e6d3551e1af56d125;hpb=f2f8875638593bd5365cfd6a5ba7c9578e52322f;p=pintos-anon diff --git a/src/threads/synch.h b/src/threads/synch.h index c8ac2f4..ad84238 100644 --- a/src/threads/synch.h +++ b/src/threads/synch.h @@ -1,5 +1,5 @@ -#ifndef HEADER_SYNCH_H -#define HEADER_SYNCH_H 1 +#ifndef THREADS_SYNCH_H +#define THREADS_SYNCH_H #include #include @@ -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 */