Is there a known performance or correctness benefit for using the C11 atomic variants? Either a game with improved perf or an example of an enabled compiler optimization (reordering) would work.
We should also look into server/fd.c too, it's where I originally borrowed the pattern from.