| 475 | } |
| 476 | |
| 477 | void OSSleepThread(OSThreadQueue* queue) |
| 478 | { |
| 479 | BOOL enabled; |
| 480 | OSThread* currentThread; |
| 481 | |
| 482 | enabled = OSDisableInterrupts(); |
| 483 | currentThread = OSGetCurrentThread(); |
| 484 | |
| 485 | currentThread->state = OS_THREAD_STATE_WAITING; |
| 486 | currentThread->queue = queue; |
| 487 | AddPrio(queue, currentThread, link); |
| 488 | RunQueueHint = TRUE; |
| 489 | __OSReschedule(); |
| 490 | OSRestoreInterrupts(enabled); |
| 491 | } |
| 492 | |
| 493 | void OSWakeupThread(OSThreadQueue* queue) |
| 494 | { |
no test coverage detected