2 ms·
What if your function takes a pointer that might be pointing to an "atomic" variable? Pointers can be used to circumvent most safety measures. If you obscure t
by jqpabc123 5y ago
What if your function takes a pointer that might be pointing to an "atomic" variable?
Pointers can be used to circumvent most safety measures. If you obscure the access, you should assume responsibility for the result.
- gpderetta 5y agoAt least in C++, atomicity is part of the type system, and you would have to explicitly reinterpret cast it away.