This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
New POSIX semaphore functionality
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: cygwin-developers at cygwin dot com
- Date: Mon, 27 Oct 2003 13:05:49 +0100
- Subject: New POSIX semaphore functionality
- Reply-to: cygwin-developers at cygwin dot com
Hi,
just a FYI. I've extended the POSIX SEM functionality as described in
SUSv3.
I've added process shared semaphores, as well as named semaphores,
together with the needed functions sem_open() and sem_close().
Also I've added the missing sem_timedwait() and sem_getvalue() functions.
sem_post() returned the wrong value and forgot to change errno. This
is fixed now.
The only missing functionality from POSIX semaphore now is sem_unlink().
I don't how to implement it correctly. The requirement is, if a process
has called sem_unlink(), further calls to sem_open() using the same name
will create a new semaphore. Other processes, which have still a
semaphore using the same name, but opened before the call to sem_unlink(),
are unaffected. This isn't supported by Windows semaphores, AFAIK.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.