Re: Question on win32 semaphore simulation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Magnus Hagander" <mha(at)sollentuna(dot)net>
Cc: "Qingqing Zhou" <zhouqq(at)cs(dot)toronto(dot)edu>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Question on win32 semaphore simulation
Date: 2006-04-18 14:14:37
Message-ID: 12906.1145369677@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
> Looking at the code, it looks fairly complex to me. I don't really know
> how sysv semaphores are supposed to work, or how we use them, but
> perhaps the whole piece of code can be simplified?

I'm not sure why the win32 port chose to emulate the SysV semaphore
interface anyway. You could equally well have used the Posix interface
(src/backend/port/posix_sema.c). Or, given Microsoft's NIH tendencies,
you might have needed to write a third implementation of the pg_sema.h
interface ... but it'd likely still be no larger than win32/sema.c ...

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2006-04-18 14:52:36 Re: Question on win32 semaphore simulation
Previous Message Tom Lane 2006-04-18 13:47:42 Re: how can i get the binary format of timestamp?