From 0da40877b8e8d3dd773409159b226300ee38a3a3 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 9 Oct 2004 23:07:14 +0000 Subject: [PATCH 1/1] Fix compile problems. Thanks to Grant Patterson for reporting the problem. --- src/tests/threads/p1-3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tests/threads/p1-3.c b/src/tests/threads/p1-3.c index 32c91e6..264ad47 100644 --- a/src/tests/threads/p1-3.c +++ b/src/tests/threads/p1-3.c @@ -8,6 +8,7 @@ #include "threads/test.h" #include +#include "threads/synch.h" #include "threads/thread.h" static void test_preempt (void); @@ -77,7 +78,7 @@ test_donate_return (void) thread_create ("acquire2", PRI_DEFAULT + 2, acquire_thread_func, &lock); printf ("This thread should have priority %d. Actual priority: %d.\n", PRI_DEFAULT + 2, thread_get_priority ()); - lock_release (); + lock_release (&lock); printf ("acquire1 and acquire2 must already have finished, in that order.\n" "This should be the last line before finishing this test.\n" "Priority donation test done.\n"); -- 2.30.2