------- Comment #19 from Jerry_V_DeLisle at rl dot gov 2008-02-07 15:54 ------- Writing to an internal unit is nothing more than a fancy (formatted) assignment. Each thread allocates its own unit structure. Its not like file I/O where threads are accessing a common shared resource.
I should mention that Danny Smith has sent me a potential patch that I will test tonight or tomorrow. I would not mind seeing a threaded example where this could be tested and that confirms we need to lock internal units. :) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35063