|
|
|
|
|
by just_curioussss
3887 days ago
|
|
If lock calls include a memory barrier, which they should, then they cannot be reordered. Edit: Your code has undefined behavior, unless the two pointers point to the same object, which is unlikely in a realistic example. |
|