| 217 | } |
| 218 | |
| 219 | static void UpdatePriority(OSThread* thread) { |
| 220 | OSPriority priority; |
| 221 | |
| 222 | do { |
| 223 | if (0 < thread->suspend) { |
| 224 | break; |
| 225 | } |
| 226 | priority = __OSGetEffectivePriority(thread); |
| 227 | if (thread->priority == priority) { |
| 228 | break; |
| 229 | } |
| 230 | thread = SetEffectivePriority(thread, priority); |
| 231 | } while (thread); |
| 232 | } |
| 233 | |
| 234 | void __OSPromoteThread(OSThread *thread, OSPriority priority) |
| 235 | { |
no test coverage detected