Project

General

Profile

Task #2513

Updated by Junxiao Shi about 9 years ago

Current way to ensure proper logging in a multi-threaded multithreaded environment, we use `std::lock_guard` to prevent any race conditions. 

 This process can be optimized with the use of a lock-free queue: 

 - individual threads (NFD and NRD) write logs, line by line, into a lock-free queue 
 - separate thread that pulls log lines from both queues, and writes them into std::clog 

Back