C - C++ Threads - mutex
Do not use a mutex when std::atomic types will suffice