base: add atomic init, load and store macros
commit9ba00949dd0045451afa677bd3cc6540b2da53d8
authorLuke Howard <lukeh@padl.com>
Sun, 12 Jul 2020 23:57:18 +0000 (13 09:57 +1000)
committerLuke Howard <lukeh@padl.com>
Mon, 13 Jul 2020 23:35:14 +0000 (14 09:35 +1000)
tree19284206cd3cc35e073e778e31b383a97d68de7b
parentcbb2ceb0186666bf89ed47762879afeeef5cbbbe
base: add atomic init, load and store macros

Add new macros for atomic initialization, load and store, with ordering
semantics equivalent to <stdatomic.h>
lib/base/heimbase-atomics.h