atomic_load/atomic_store : to ensure return the latest value, should we add a memory...
commit105d70f7b4ce7706652853ece2e35ea8c774005f
authorkbkpbot <kbkpbot@gmail.com>
Mon, 5 Feb 2024 00:37:41 +0000 (5 08:37 +0800)
committerkbkpbot <kbkpbot@gmail.com>
Mon, 5 Feb 2024 00:37:41 +0000 (5 08:37 +0800)
treec1a28b0275c72437e9a01516a3ea542ca95fe90a
parentda0d43903b2b31b935188847d6739306ab998e13
atomic_load/atomic_store : to ensure return the latest value, should we add a memory barrier here?

If have no these memory barriers, sometime it will cause bug in multiple threads program.
lib/stdatomic.c