[riot-notifications] [RIOT-OS/RIOT] sys: Added simple memory barrier API (#11438)
notifications at github.com
Wed Apr 24 17:02:55 CEST 2019
@jcarrano: Thanks for the quick comments :-) I'll change `compiler_barrier()` to be a macro and I'll do the same of `__sync_synchronize`
> The biggest problem, however, is that RIOT's `__sync_synchronize` does not do what it is supposed to[...]
This is true, but only if `__sync_synchronize()` is not a compiler build-in function. Recent versions of both GCC and clang will never generate a call to that and instead directly generate the machine code issuing the memory barrier
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications