Closed skempdt closed 8 months ago
Could probably use the atomic_*_explicit()
variants that take a memory_order
parameter and set the memory order to relaxed. Otherwise the default memory order is sequential consistency which is probably too strong for counters and flags.
Use stdatomic functions instead of an explicit mutex to protect operations.