mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-17 08:11:51 +00:00
Missing changes from last commit.
This commit is contained in:
parent
03d2525ccc
commit
97d65e5563
@ -67,6 +67,7 @@ int sys_semaphore_wait(u32 sem, u64 timeout)
|
||||
semaphore* sem_data = nullptr;
|
||||
if(!sys_sem.CheckId(sem, sem_data)) return CELL_ESRCH;
|
||||
|
||||
sem_data->sem_count = 0; // Reset internal counter for sys_semaphore_get_value.
|
||||
sem_data->sem.WaitTimeout(timeout ? timeout : INFINITE);
|
||||
|
||||
return CELL_OK;
|
||||
@ -79,6 +80,7 @@ int sys_semaphore_trywait(u32 sem)
|
||||
semaphore* sem_data = nullptr;
|
||||
if(!sys_sem.CheckId(sem, sem_data)) return CELL_ESRCH;
|
||||
|
||||
sem_data->sem_count = 0; // Reset internal counter for sys_semaphore_get_value.
|
||||
if(sem_data->sem.TryWait()) return 1;
|
||||
|
||||
return CELL_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user