Allow two threads to read from a file at once.

It just happens in order, rather than failing with an error (async busy.)
Async operations still fail when used in this way, however.
This commit is contained in:
Unknown W. Brackets 2014-03-02 13:48:29 -08:00
parent 07a2e57932
commit 2a4cbb7171

View file

@ -638,7 +638,7 @@ void __IoSchedSync(FileNode *f, int fd, int usec) {
u64 param = ((u64)__KernelGetCurThread()) << 32 | fd;
CoreTiming::ScheduleEvent(usToCycles(usec), syncNotifyEvent, param);
f->pendingAsyncResult = true;
f->pendingAsyncResult = false;
f->hasAsyncResult = false;
}