6 Feb
2025
6 Feb
'25
5:31 p.m.
Is there a known performance or correctness benefit for using the C11 atomic variants?
Not that I know of. I just think it makes sense to use them if they're available (and work correctly) instead of needing to write our own.
We should also look into server/fd.c...
`server/fd.c` defines `atomic_store_*(volatile *ptr, value)` as `*ptr = value` on x86/x86_64. I'm not sure why it defines its own set of atomic helpers, when it also has access to the macros in `include/winnt.h` indirectly. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7281#note_93924