| 491 | } |
| 492 | |
| 493 | void OSWakeupThread(OSThreadQueue* queue) |
| 494 | { |
| 495 | BOOL enabled; |
| 496 | OSThread* thread; |
| 497 | |
| 498 | enabled = OSDisableInterrupts(); |
| 499 | while (queue->head) |
| 500 | { |
| 501 | RemoveHead(queue, thread, link); |
| 502 | thread->state = OS_THREAD_STATE_READY; |
| 503 | if (!(0 < thread->suspend)) |
| 504 | { |
| 505 | SetRun(thread); |
| 506 | } |
| 507 | } |
| 508 | __OSReschedule(); |
| 509 | OSRestoreInterrupts(enabled); |
| 510 | } |
| 511 | |
| 512 | void OSClearStack(u8 val) |
| 513 | { |
no test coverage detected