| 198 | #pragma dont_inline reset |
| 199 | |
| 200 | OSPriority __OSGetEffectivePriority(OSThread* thread) |
| 201 | { |
| 202 | OSPriority priority; |
| 203 | OSMutex* mutex; |
| 204 | OSThread* blocked; |
| 205 | |
| 206 | priority = thread->base; |
| 207 | for (mutex = thread->queueMutex.head; mutex; mutex = mutex->link.next) |
| 208 | { |
| 209 | blocked = mutex->queue.head; |
| 210 | if (blocked && blocked->priority < priority) |
| 211 | { |
| 212 | priority = blocked->priority; |
| 213 | } |
| 214 | } |
| 215 | return priority; |
| 216 | } |
| 217 | |
| 218 | static OSThread* SetEffectivePriority(OSThread* thread, OSPriority priority) |
| 219 | { |
no outgoing calls
no test coverage detected