Re: [HACKERS] Win32 latch implementation revisited

2010-09-14 Thread Tom Lane
Heikki Linnakangas writes: > It just occurred to me that the Windows latch implementation goes > through a lot of trouble to dynamically assign the shared Windows event > handles to the latches in OwnLatch, but there's really no reason why > they can't be statically assigned in InitSharedLatch

[HACKERS] Win32 latch implementation revisited

2010-09-14 Thread Heikki Linnakangas
It just occurred to me that the Windows latch implementation goes through a lot of trouble to dynamically assign the shared Windows event handles to the latches in OwnLatch, but there's really no reason why they can't be statically assigned in InitSharedLatch instead. We have to allocate the sa