How to guarantee read of the most recent value using stdatomic?
In a dual-core embedded system, core0 needs to interrupt core1 for several reasons. An enum paired with a union is used to pass both the reason and the data of the interrupt. The code is written in C.