mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 16:01:42 +12: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;
|
const bool is_timedout = timeout && get_system_time() - start_time > timeout;
|
||||||
|
|
||||||
// check timeout (TODO)
|
// check timeout only if no thread signaled in mode 1 (the flaw of avoiding sleep queue)
|
||||||
if (is_timedout)
|
if (is_timedout && !cond->signaled1)
|
||||||
{
|
{
|
||||||
// cancel waiting
|
// cancel waiting
|
||||||
cond->waiters--; assert(cond->waiters >= 0);
|
cond->waiters--; assert(cond->waiters >= 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue