mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
Bugfix
This commit is contained in:
parent
6de3a6090a
commit
daad7d71f9
1 changed files with 2 additions and 2 deletions
|
@ -198,8 +198,8 @@ s32 _sys_lwcond_queue_wait(u32 lwcond_id, u32 lwmutex_id, u64 timeout)
|
|||
{
|
||||
const bool is_timedout = timeout && get_system_time() - start_time > timeout;
|
||||
|
||||
// check timeout (TODO)
|
||||
if (is_timedout)
|
||||
// check timeout only if no thread signaled in mode 1 (the flaw of avoiding sleep queue)
|
||||
if (is_timedout && !cond->signaled1)
|
||||
{
|
||||
// cancel waiting
|
||||
cond->waiters--; assert(cond->waiters >= 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue