On Tue, Feb 9, 2010 at 10:00 PM, Jim Brooks <[email protected]> wrote:
> >multiple threads try to write to it a ostream they contend > >for a mutex that Microsoft have used to implement ref counting. > > If the mutex is really in std::cout (not std::ostream) (???), > a possible workaround might be indirection thru > a custom C++ streambuf class that uses printf() (???). > Not writing the stream if the notify level doesn't warrant it really is the best approach. Why risk a memory allocation, along with whatever locks that uses, if it's not necessary? Tim
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

