bug-hurd
[Top][All Lists]
Advanced

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

POSIX semaphore for GNU/Hurd


From: Gaël Le Mignot
Subject: POSIX semaphore for GNU/Hurd
Date: Sun, 27 Oct 2002 18:06:08 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

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).

Anyway, here it is. I think it should be merged in libpthreads as soon
as someone reviewed it.

Attachment: semaphore.c
Description: POSIX semaphore

Attachment: semaphore.h
Description: POSIX semaphore header


-- 
Gael Le Mignot "Kilobug" - kilobug@freesurf.fr - http://kilobug.free.fr
GSM         : 06.71.47.18.22 (in France)   ICQ UIN   : 7299959
Fingerprint : 1F2C 9804 7505 79DF 95E6 7323 B66B F67B 7103 C5DA

Member of HurdFr: http://hurdfr.org - The GNU Hurd: http://hurd.gnu.org

reply via email to

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