On Sun, 5 Jul 2026 at 07:03, Thomas Munro <[email protected]> wrote: > I didn't even look into that, because I was deliberately trying to > avoid needing atomics from here, because I need this to work on Unix > too, and I didn't want to open too many cans of worms at the same > time.
We do have cross-platform locks on the frontend, so we could use those for now if needed. I don't think this needs atomic for performance reasons and once we have atomics on the frontend it should be easy to swap out the a lock for an atomic operation. > 1. If we're ready to drop VS < 2022 and GCC < 4.9, we could just use > <stdatomic.h> directly in frontend code (independently of the project > to use it in the backend). I think we are ready, see this thread[1]. We'd still need a MacOS version of stdatomic.h though before we could rely on it. [1]: https://www.postgresql.org/message-id/[email protected]
