From 29adc36b906ae3be5afc577450136e11c12bc0a0 Mon Sep 17 00:00:00 2001 From: manuel Date: Fri, 11 May 2012 15:07:44 +0200 Subject: fix wrong behavior of cond_wait/cond_signal in donation case. we can't pre-sort the waiters list here either. it's the same as with sema_up/sema_down --- threads/thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'threads/thread.h') diff --git a/threads/thread.h b/threads/thread.h index fd4f8a6..9125937 100644 --- a/threads/thread.h +++ b/threads/thread.h @@ -111,7 +111,7 @@ struct thread int is_donated; /* flag if threads priority has been donated by another thread */ int saved_priority; /* saved base priority in case of priority dontation */ struct list locks; /* list of locks the thread currently holds */ - struct lock *blocked_lock; /* lock the thread currently trys to accquire (but hasn't yet) */ + struct lock *blocked_lock; /* the lock the thread currently tries to acquire (but hasn't yet) */ }; /* If false (default), use round-robin scheduler. -- cgit v1.2.3