Claudio Natoli <claudio.natoli@memetrics.com> writes:
>> The correct solution to that seems to lie elsewhere, ie, not use
>> semaphores for spinlocks.
> Just working with what we've already got. There seems to be very usable code
> in src/backend/port/win32/sema.c, which gets invoked as Win32 does not have
> spin-locks, but unfortunately relies on ShmemInitStruct.
Win32 certainly has spinlocks; it does not run on any hardware for which
we don't have spinlock assembler. For that matter, doesn't it have
POSIX-compatible semaphores? I'm not sure there's any need for
src/backend/port/win32/sema.c at all.
regards, tom lane