If you write embedded C code and aren't familiar with how or why to use "volatile," here is a great read:http://www.barrgroup.com/Embedded-Systems/How-To/C-Volatile-Keyword …
-
-
@RichFelker@embedsys What's the risk? -
@therealundamned@embedsys In terms of hw impl, lack of memory barrier. In terms of hl model, you need locks or atomics that sequence mem. -
@RichFelker do you know any alternative article/doc on it?@therealundamned -
@embedsys@RichFelker@therealundamned Either C11 atomics, or compiler intrinsics for earlier C standards without any threading support. -
@embedsys@RichFelker@therealundamned Even if you don't want any real synchronization, you still need atomics with memory_order_relaxed.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.