[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: POSIX semaphore for GNU/Hurd

From: Michal 'hramrach' Suchanek
Subject: Re: POSIX semaphore for GNU/Hurd
Date: Wed, 6 Nov 2002 18:32:08 +0100
User-agent: Mutt/1.4i

On Sun, Oct 27, 2002 at 06:06:08PM +0100, Ga?l Le Mignot wrote:
> Hello,
> While trying to compile abiword, and so gnome-vfs, on GNU/Hurd, I've
> seen that it uses POSIX semaphore, that we don't implement yet.
> So, I've done an implementation of POSIX semaphores using a pthread_mutex
> and a pthread_cond. I didn't test it yet, but it compiles, and I'm pretty
> confident in it (but I'm sure of the correct behavior of the destroy
> function if some threads are locked on the semaphore).
The behavior is undefined ;)
> Anyway, here it is. I think it should be merged in libpthreads as soon
> as someone reviewed it.
I tried to make it return errno and be async-cancel resistant.

Anyway the header should be basically the same, just the implementation
changes a bit.

Michal Suchanek

Attachment: semaphore.c
Description: Text Data

Attachment: semaphore.h
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]