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.h | |
| 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.h')
| -rw-r--r-- | threads/thread.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/threads/thread.h b/threads/thread.h index 8cfafe6..fd4f8a6 100644 --- a/threads/thread.h +++ b/threads/thread.h | |||
| @@ -111,6 +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 | }; | 115 | }; |
| 115 | 116 | ||
| 116 | /* If false (default), use round-robin scheduler. | 117 | /* If false (default), use round-robin scheduler. |
