But it's true for many, if not most, kinds of undefined behavior. Optimizers know about undefined behavior too, and may make assumptions based on that. C++ says that the moment something undefined is...
Type: Posts; User: CornedBee
But it's true for many, if not most, kinds of undefined behavior. Optimizers know about undefined behavior too, and may make assumptions based on that. C++ says that the moment something undefined is...
A release doesn't do anything without an acquire to synchronize with, and the thing about DCL is that the second thread never acquires the mutex, and thus never synchronizes with the release.