Mercurial > flash_v2
diff packages/kernel/current/include/sched.hxx @ 62:7a6ac9edc838 ecos-sw-2000-01-24
Merge from eCos master repository on 2000-01-24-19:43:49-GMT
| author | jlarmour |
|---|---|
| date | Mon, 24 Jan 2000 21:43:17 +0000 |
| parents | 443894e2e912 |
| children | c38311975d4f |
line wrap: on
line diff
--- a/packages/kernel/current/include/sched.hxx +++ b/packages/kernel/current/include/sched.hxx @@ -25,7 +25,8 @@ // September 30, 1998. // // The Initial Developer of the Original Code is Cygnus. Portions created -// by Cygnus are Copyright (C) 1998,1999 Cygnus Solutions. All Rights Reserved. +// by Cygnus are Copyright (C) 1998,1999,2000 Cygnus Solutions. +// All Rights Reserved. // ------------------------------------------- // //####COPYRIGHTEND#### @@ -166,8 +167,10 @@ public: private: - // For all priority inheritance mechanisms we need to - // keep track of how many mutexes we have locked. + // For all priority inheritance mechanisms we need to keep track of how + // many mutexes we have locked, including one which we are waiting to + // lock, because we can inherit priority while sleeping just prior to + // wakeup. cyg_count32 mutex_count; public: @@ -194,6 +197,10 @@ public: // has higher priority than this. void inherit_priority( Cyg_Thread *thread); + // Relay the priority of the ex-owner thread or from the queue if it + // has a higher priority than ours. + void relay_priority( Cyg_Thread *ex_owner, Cyg_ThreadQueue *pqueue); + // Lose priority inheritance void disinherit_priority();
