This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

New POSIX semaphore functionality


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]