Hello,

The util/Logger.h header contains this declaration: mutable boost::mutex _mutex;

and the .cpp:
void Logger::log(Level level, const std::string & className, const
std::string & message) {
        boost::mutex::scoped_lock scopedLock(_mutex);
...

What purpose does this lock serve? I understand mutex mechanisms,
semaphores etc.
What I cannot see here is the shared ressource that is protected by
this lock, nor what makes this lock necessary.

If anyone happens to know what this lock is about (maybe Tanguy
Krotoff , the autor of Logger), could you please shed light on this?
Thanks

PS: I'm continuing research on my side



--
Ovidiu CIULE
Arad, Romania
+40 357 809 157
_______________________________________________
Wengophone-devel mailing list
[email protected]
http://dev.openwengo.com/mailman/listinfo/wengophone-devel

Reply via email to