summaryrefslogtreecommitdiffstats
path: root/threads/thread.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2012-05-11 15:07:44 +0200
committermanuel <manuel@mausz.at>2012-05-11 15:07:44 +0200
commit29adc36b906ae3be5afc577450136e11c12bc0a0 (patch)
tree9b412194459f0866c48cdbc79ebc69320529f4ee /threads/thread.h
parent030ced4e1f188f52f6579532c860f5c60cfec826 (diff)
downloadprogos-29adc36b906ae3be5afc577450136e11c12bc0a0.tar.gz
progos-29adc36b906ae3be5afc577450136e11c12bc0a0.tar.bz2
progos-29adc36b906ae3be5afc577450136e11c12bc0a0.zip
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
Diffstat (limited to 'threads/thread.h')
-rw-r--r--threads/thread.h2
1 files changed, 1 insertions, 1 deletions
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
111 int is_donated; /* flag if threads priority has been donated by another thread */ 111 int is_donated; /* flag if threads priority has been donated by another thread */
112 int saved_priority; /* saved base priority in case of priority dontation */ 112 int saved_priority; /* saved base priority in case of priority dontation */
113 struct list locks; /* list of locks the thread currently holds */ 113 struct list locks; /* list of locks the thread currently holds */
114 struct lock *blocked_lock; /* lock the thread currently trys to accquire (but hasn't yet) */ 114 struct lock *blocked_lock; /* the lock the thread currently tries to acquire (but hasn't yet) */
115 }; 115 };
116 116
117/* If false (default), use round-robin scheduler. 117/* If false (default), use round-robin scheduler.