My bad, I talked out of my ass, a lock free queue is necessary, and even the spdlog async logger is not safe to use at all:
The problem is that you need a wait-free mechanism for sending the log events, because if there are something like mutexes or memory allocation involved with sending a log event, that's enough to risk glitching audio.
https://github.com/gabime/spdlog/blob/2 ... gger.h#L12
Statistics: Posted by qntnfdd — Thu Jan 02, 2025 12:24 am