Hi Matthias, Thanks for v3, it looks correct to me.
One small thing. pg_atomic_read_membarrier_u64() is really a fetch_add of 0. So it writes to the shared counter. Would pg_memory_barrier() plus pg_atomic_read_u64() work instead? Thanks, Shihao
Hi Matthias, Thanks for v3, it looks correct to me.
One small thing. pg_atomic_read_membarrier_u64() is really a fetch_add of 0. So it writes to the shared counter. Would pg_memory_barrier() plus pg_atomic_read_u64() work instead? Thanks, Shihao