Re: LWLock/ShmemIndex startup question - Mailing list pgsql-hackers

From Tom Lane
Subject Re: LWLock/ShmemIndex startup question
Date
Msg-id 7926.1073969200@sss.pgh.pa.us
Whole thread Raw
In response to Re: LWLock/ShmemIndex startup question  (Claudio Natoli <claudio.natoli@memetrics.com>)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: Postgres + Xapian (was Re: fulltext searching via a
Next
From: Claudio Natoli
Date:
Subject: Re: LWLock/ShmemIndex startup question