mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-19 21:35:12 +00:00
CHECK_EMU_STATUS, autojoin_thread_t
This commit is contained in:
parent
8f9e1100c8
commit
3064cf8101
28 changed files with 145 additions and 179 deletions
|
|
@ -690,15 +690,10 @@ s32 cellFsStReadWait(u32 fd, u64 size)
|
|||
|
||||
std::unique_lock<std::mutex> lock(file->mutex);
|
||||
|
||||
// wait for size availability or stream end
|
||||
while (file->st_total_read - file->st_copied < size && file->st_total_read < file->st_read_size)
|
||||
{
|
||||
// wait for size availability or stream end
|
||||
|
||||
if (Emu.IsStopped())
|
||||
{
|
||||
cellFs.Warning("cellFsStReadWait(0x%x) aborted", fd);
|
||||
return CELL_OK;
|
||||
}
|
||||
CHECK_EMU_STATUS;
|
||||
|
||||
file->cv.wait_for(lock, std::chrono::milliseconds(1));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue