summaryrefslogtreecommitdiffstats
path: root/threads/synch.c
diff options
context:
space:
mode:
Diffstat (limited to 'threads/synch.c')
-rw-r--r--threads/synch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/threads/synch.c b/threads/synch.c
index a1b7549..a520f61 100644
--- a/threads/synch.c
+++ b/threads/synch.c
@@ -32,9 +32,9 @@
32#include "threads/interrupt.h" 32#include "threads/interrupt.h"
33#include "threads/thread.h" 33#include "threads/thread.h"
34 34
35static bool lock_priority_cmp_greater(const struct list_elem *a, const struct list_elem *b, 35static bool lock_priority_cmp_greater (const struct list_elem *a, const struct list_elem *b,
36 void *AUX UNUSED); 36 void *AUX UNUSED);
37static bool semaphore_priority_cmp_greater(const struct list_elem *a, const struct list_elem *b, 37static bool semaphore_priority_cmp_greater (const struct list_elem *a, const struct list_elem *b,
38 void *aux UNUSED); 38 void *aux UNUSED);
39 39
40/* Initializes semaphore SEMA to VALUE. A semaphore is a 40/* Initializes semaphore SEMA to VALUE. A semaphore is a
@@ -202,7 +202,7 @@ lock_init (struct lock *lock)
202 202
203/* comparison function for our descending ordered lock list. */ 203/* comparison function for our descending ordered lock list. */
204static bool 204static bool
205lock_priority_cmp_greater(const struct list_elem *a, const struct list_elem *b, 205lock_priority_cmp_greater (const struct list_elem *a, const struct list_elem *b,
206 void *AUX UNUSED) 206 void *AUX UNUSED)
207{ 207{
208 const struct lock *l1 = list_entry (a, struct lock, elem); 208 const struct lock *l1 = list_entry (a, struct lock, elem);
@@ -355,7 +355,7 @@ cond_init (struct condition *cond)
355 355
356/* comparison function for our descending ordered condition waiters list. */ 356/* comparison function for our descending ordered condition waiters list. */
357static bool 357static bool
358semaphore_priority_cmp_greater(const struct list_elem *a, const struct list_elem *b, 358semaphore_priority_cmp_greater (const struct list_elem *a, const struct list_elem *b,
359 void *aux UNUSED) 359 void *aux UNUSED)
360{ 360{
361 const struct semaphore_elem *s1 = list_entry (a, struct semaphore_elem, elem); 361 const struct semaphore_elem *s1 = list_entry (a, struct semaphore_elem, elem);