| 242 | } |
| 243 | |
| 244 | inline void UpdatePriority(OSThread* thread) |
| 245 | { |
| 246 | OSPriority priority; |
| 247 | |
| 248 | do |
| 249 | { |
| 250 | if (0 < thread->suspend) |
| 251 | { |
| 252 | break; |
| 253 | } |
| 254 | priority = __OSGetEffectivePriority(thread); |
| 255 | if (thread->priority == priority) |
| 256 | { |
| 257 | break; |
| 258 | } |
| 259 | thread = SetEffectivePriority(thread, priority); |
| 260 | } while (thread); |
| 261 | } |
| 262 | |
| 263 | static OSThread* SelectThread(BOOL yield) |
| 264 | { |
no test coverage detected