"primitive synchronization primitives — safe?" Code Answer


unless you understand the memory architecture of your device in detail, as well as the code generated by your compiler, this code is not safe.

just because it seems that it would work, doesn't mean that it will. "constrained" devices, like the unconstrained type, are getting more and more powerful. i wouldn't bet against finding a dual-core cpu in a cell phone, for instance. that means i wouldn't bet that the above code would work.

By Bernd Ott on August 20 2022

Answers related to “primitive synchronization primitives — safe?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.