Using different semaphore for locking - Mailing list pgsql-hackers

From flyusa2010 fly
Subject Using different semaphore for locking
Date
Msg-id AANLkTinq+uuvDitaHoxf_4XY7b4nSCS1_+S9Z1+Y+oKW@mail.gmail.com
Whole thread Raw
Responses Re: Using different semaphore for locking  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I found that postgres uses different semaphore system call on some different operating systems.
For example, I found that on linux, System V semaphore (semop etc.) is used to implement locking, while on Darwin, POSIX semaphore (sem_wait, sem_post etc.) is used.
linux and Darwin support both System V and POSIX semaphores, i'm wondering why postgres implement locking using different types of semaphore system call. Is there any performance or semantic issue on different OSes? 

Thnaks!

pgsql-hackers by date:

Previous
From: flyusa2010 fly
Date:
Subject: what are clog and xlog?
Next
From: David Fetter
Date:
Subject: Re: new patch of MERGE (merge_204) & a question about duplicated ctid