Q: thread safe, In file src/application/predictor.hpp
Such as the title.
branch master, file: src/application/predictor.hpp , line:150
if I change the function 'fprintf' to 'fwrite', it would not be thread safe. I want to use fwrite, but found do not work. If I need use lock when call fwrite function
sorry, I didn't get you.
why need to change to fwrite ?

I found the problem.
I want a binary file.
data is std::vector < double > when I use fwrite, the file contains both Big_endian and Little_endian.
I get it, sorry.
This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.