I'm using fread() and fseek() stream IO functions in a multi-threaded application. Unfortunately, the data returned by fread() is not correct. From the bytes it returns, I can tell that the internal buffers of the various FILE* objects (one per thread) are interfering with each other.
The same code (C++) works fine on Windows.
Does anyone have any thoughts on whether the MacOS stdio stream library (fread and so on) is thread safe?
Thanks in advance for any help,
neal
The same code (C++) works fine on Windows.
Does anyone have any thoughts on whether the MacOS stdio stream library (fread and so on) is thread safe?
Thanks in advance for any help,
neal