lv2: Wait for rescheduling before confirming ETIMEOUT

This commit is contained in:
Eladash 2019-08-25 10:05:05 +03:00 committed by Ivan
parent 35a3bed91a
commit a921fe3351
7 changed files with 24 additions and 0 deletions

View file

@ -292,6 +292,9 @@ error_code sys_event_queue_receive(ppu_thread& ppu, u32 equeue_id, vm::ptr<sys_e
{
if (lv2_obj::wait_timeout(timeout, &ppu))
{
// Wait for rescheduling
ppu.check_state();
std::lock_guard lock(queue->mutex);
if (!queue->unqueue(queue->sq, &ppu))