------- Comment #16 from jakub at gcc dot gnu dot org 2010-09-09 10:33 ------- The *_unlocked versions are faster a lot actually, at least for the one character ops, because no locking is performed and the calls are inlined. But the question is whether libstdc++ can use them, unless there is some restriction that would disallow several threads from using the same FILE * (including using STL APIs in one thread and C stdio APIs in another thread).
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45574