Archived
This forum has been archived. Please start a new discussion on GitHub.
LoggerUtils not thread safe?
Edward Bishop
in Help Center
I see that the code in LoggerI.cpp is protected with a global mutex, but it seems that the utilities like Ice::Trace are not.
Even though they send to the logger, their stream is not protected:
Am I right? Should we not share Ice::Trace (Warn, Error) objects between threads?
Thanks,
Edward
Even though they send to the logger, their stream is not protected:
[INDENT]Trace&
Ice::operator<<(Trace& out, ios_base& (*val)(ios_base&))
{
out.__str() << val;
return out;
}[/INDENT]
Am I right? Should we not share Ice::Trace (Warn, Error) objects between threads?
Thanks,
Edward
0
