I noticed this when hacking exchange_buffer in the past. It always looked concerning to me.
But the question is not whether a locked mutex is portable between threads (because it's not). The question is rather: is the implementation of the *lock template portable between threads? It might be...
I noticed this when hacking exchange_buffer in the past. It always looked concerning to me.
But the question is not whether a locked mutex is portable between threads (because it's not). The question is rather: is the implementation of the *lock template portable between threads? It might be...