[Solved] QFile ReadOnly is thread safe?
Solved
General and Desktop
-
wrote on 26 Oct 2015, 09:57 last edited by VRonin
Is accessing a file using QFile opened with ReadOnly flag, seeking it and use a QDataStream to read it from multiple threads safe?
The file will be the same but using multiple instances of QFile to read it
-
Hi,
If each thread has its own instance of QFile opened read-only and also its own QDataStream and does the processing itself, then no, there's no particular problem.
-
wrote on 26 Oct 2015, 11:30 last edited by
Thank you very much
1/3