[riot-notifications] [RIOT-OS/RIOT] sys: Added simple memory barrier API (#11438)

Marian Buschsieweke 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:
https://github.com/RIOT-OS/RIOT/pull/11438#issuecomment-486280312
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190424/366178a8/attachment.html>


More information about the notifications mailing list