| 545 | } |
| 546 | |
| 547 | void OSSleepThread(OSThreadQueue* queue) { |
| 548 | BOOL enabled; |
| 549 | OSThread* currentThread; |
| 550 | |
| 551 | enabled = OSDisableInterrupts(); |
| 552 | currentThread = OSGetCurrentThread(); |
| 553 | |
| 554 | currentThread->state = OS_THREAD_STATE_WAITING; |
| 555 | currentThread->queue = queue; |
| 556 | AddPrio(queue, currentThread, link); |
| 557 | RunQueueHint = TRUE; |
| 558 | __OSReschedule(); |
| 559 | OSRestoreInterrupts(enabled); |
| 560 | } |
| 561 | |
| 562 | void OSWakeupThread(OSThreadQueue* queue) { |
| 563 | BOOL enabled; |
no test coverage detected