Small changes

lwmutex completely implemented
This commit is contained in:
Nekotekina 2014-02-09 15:11:48 +04:00
parent ed40732e7b
commit 3308fefa7f
14 changed files with 259 additions and 128 deletions

View file

@ -194,13 +194,12 @@ int sys_spu_thread_get_exit_status(u32 id, mem32_t status)
return CELL_ESRCH;
}
if (!(*(SPUThread*)thr).SPU.Out_MBox.GetCount() || !thr->IsStopped())
u32 res;
if (!(*(SPUThread*)thr).SPU.Out_MBox.Pop(res) || !thr->IsStopped())
{
return CELL_ESTAT;
}
u32 res;
(*(SPUThread*)thr).SPU.Out_MBox.PopUncond(res);
status = res;
return CELL_OK;
}