Skip to content

Commit 307f458

Browse files
ioman: yield while waiting for pending I/O during block
1 parent e3d0d17 commit 307f458

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ioman.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ int ioBlockOps(int block)
362362

363363
// wait for all io to finish
364364
while (ioHasPendingRequests()) {
365+
DelayThread(1000);
365366
};
366367

367368
ChangeThreadPriority(ThreadID, status.current_priority);

0 commit comments

Comments
 (0)