| 474 | } |
| 475 | |
| 476 | void UnblockThread(thread_t* thread){ |
| 477 | acquireLock(&thread->stateLock); |
| 478 | thread->state = ThreadStateRunning; |
| 479 | releaseLock(&thread->stateLock); |
| 480 | |
| 481 | /*for(List<thread_t*>* l : thread->waiting){ |
| 482 | l->remove(thread); |
| 483 | }*/ |
| 484 | } |
| 485 | |
| 486 | void Tick(regs64_t* r){ |
| 487 | if(!schedulerReady) return; |
no outgoing calls
no test coverage detected