The variable `count` appears to be incremented non-atomically from two different threads. Is that safe in C++?
count++; pthread_mutex_lock(&m);
Note it was a question. As you mention, not everyone can do so (etc).
The variable `count` appears to be incremented non-atomically from two different threads. Is that safe in C++?