diff options
| author | manuel <manuel@mausz.at> | 2012-05-11 03:02:38 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2012-05-11 03:02:38 +0200 |
| commit | 04bb67f0e37a9144c4656d21f9f876f256de13e5 (patch) | |
| tree | 9a81ebbfb4653258c5fa97cfe527dd7628f348b2 /threads/thread.c | |
| parent | 2ea82ff0203b1cc22b55900752d44514506eb01e (diff) | |
| download | progos-04bb67f0e37a9144c4656d21f9f876f256de13e5.tar.gz progos-04bb67f0e37a9144c4656d21f9f876f256de13e5.tar.bz2 progos-04bb67f0e37a9144c4656d21f9f876f256de13e5.zip | |
major: added support for nested priority donation
minor: replaced priority with a pointer to the waiting thread in condition handling
status: 0/18 failed!
Diffstat (limited to 'threads/thread.c')
| -rw-r--r-- | threads/thread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/threads/thread.c b/threads/thread.c index 358d3a1..61ab5d9 100644 --- a/threads/thread.c +++ b/threads/thread.c | |||
| @@ -380,6 +380,7 @@ void | |||
| 380 | thread_other_set_priority (struct thread *t, int new_priority) | 380 | thread_other_set_priority (struct thread *t, int new_priority) |
| 381 | { | 381 | { |
| 382 | ASSERT (is_thread (t)); | 382 | ASSERT (is_thread (t)); |
| 383 | ASSERT (new_priority >= PRI_MIN && new_priority <= PRI_MAX); | ||
| 383 | 384 | ||
| 384 | if (t->priority == new_priority) | 385 | if (t->priority == new_priority) |
| 385 | return; | 386 | return; |
