Recently, I worked on a project which made heavy use of C++ threads. To use SLogLib in this project I added multi-threaded support in SLogLib with the help of c++ 11 std::mutex
and std::lock_guard
. Over the last few months multi-threaded support in SLogLib has been extensively tested and there are no known bugs.
All threading support is located in LoggingManager.cpp. The functions which modify internal state in LoggingManager are protected by std::mutex. There is a support for building call stack through the use of SLOGLIB_ADD_TO_CALLSTACK
macro. In the latest build, there is a separate callstack for each thread.
Checkout the latest commit from https://github.com/saurabhg17/SLogLib.
No comments yet