mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 15:05:59 +00:00
Timers scaling and fixes
This commit is contained in:
parent
d17be2c2ec
commit
85b1152e29
27 changed files with 160 additions and 162 deletions
|
|
@ -214,7 +214,7 @@ error_code sys_lwmutex_lock(ppu_thread& ppu, vm::ptr<sys_lwmutex_t> lwmutex, u64
|
|||
return CELL_OK;
|
||||
}
|
||||
|
||||
const u64 time0 = timeout ? get_system_time() : 0;
|
||||
const u64 time0 = timeout ? get_guest_system_time() : 0;
|
||||
|
||||
const error_code res_ = _sys_lwmutex_lock(ppu, lwmutex->sleep_queue, timeout);
|
||||
|
||||
|
|
@ -229,7 +229,7 @@ error_code sys_lwmutex_lock(ppu_thread& ppu, vm::ptr<sys_lwmutex_t> lwmutex, u64
|
|||
}
|
||||
else if (timeout && res_ != CELL_ETIMEDOUT)
|
||||
{
|
||||
const u64 time_diff = get_system_time() - time0;
|
||||
const u64 time_diff = get_guest_system_time() - time0;
|
||||
|
||||
if (timeout <= time_diff)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue