From: The C. <Th...@gm...> - 2003-01-09 18:53:58
|
hi, i've got a problem concerning iostreams. i need a threadsafe log for my program. as far as i know the stl should be threadsafe, but it isn't. when i create several threads which only repeat printing out a message using cout, the output is pretty messed up. it seems as if a thread prints his message while an other one is doing the same. are there some switches to consider? i used mthreads without success. or do i need to derive my own threadsafe streambuf? thx thecom |