I now think it's actually this part of the standard that prevents it: http://eel.is/c++draft/intro.multithread#intro.progress-7
Basically a compiler can not optimize a non-deadlocking program into a potentially deadlocking one.
Basically a compiler can not optimize a non-deadlocking program into a potentially deadlocking one.
No comments yet.