| 1444 | } |
| 1445 | |
| 1446 | stx::access_lock acquire_access_lock(stx::init_mutex &mtx, ppu_thread *ppu) { |
| 1447 | if (!ppu) { |
| 1448 | ppu = ensure(cpu_thread::get_current<ppu_thread>()); |
| 1449 | } |
| 1450 | |
| 1451 | // TODO: Check if needs to wait |
| 1452 | return mtx.access(); |
| 1453 | } |
| 1454 | |
| 1455 | stx::reset_lock acquire_reset_lock(stx::init_mutex &mtx, ppu_thread *ppu) { |
| 1456 | if (!ppu) { |
no test coverage detected