first patch for process-shared semaphore

Alexander Kabaev kabaev at gmail.com
Thu Dec 24 03:12:26 UTC 2009


On Thu, 24 Dec 2009 09:58:50 +0800
David Xu <davidxu at freebsd.org> wrote:

> Alexander Kabaev wrote:
> > On Thu, 24 Dec 2009 09:22:34 +0800
> > David Xu <davidxu at freebsd.org> wrote:
> >> libthr does not require semaphore, it implements semaphore,
> >> it is easier than other ways to implement the process-shared.
> >>
> > Let me rephrase: I do not think semaphores belong in libthr. They
> > should be either in libc or in librt.
> > 
> > 
> OK, does others really implement semaphore in librt ?
> unfortunately, the librt already requires libpthread to implement
> SIGEV_THREAD.

I retract that. It appears that there is no consistency - Solaris put
these into libc, Linux into libpthread ans SUSv2 hints that these
belong with realtime functions. libthr is fine.

-- 
Alexander Kabaev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-threads/attachments/20091224/4efd8e31/signature.pgp


More information about the freebsd-threads mailing list