first patch for process-shared semaphore
Attilio Rao
attilio at freebsd.org
Thu Dec 24 16:53:42 UTC 2009
2009/12/24 Alexander Kabaev <kabaev at gmail.com>:
> 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.
Beside that, though, semaphores should be thread library-agnostic so I
would implement them into a different namespace (libc, for the POSIX
compatibility, seems the most appropriate choice).
Attilio
--
Peace can only be achieved by understanding - A. Einstein
More information about the freebsd-threads
mailing list