Re: Semaphores - feature request

From: Date: Wed, 03 Jan 2007 02:06:41 +0000
Subject: Re: Semaphores - feature request
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-27244@lists.php.net to get a copy of this message
On Wed, 3 Jan 2007 01:20:41 +0100 "Wojciech Malota" <wojtekm86@konto.pl> wrote: > > So the point is that you cannot remove the semaphore when there are no > > callers waiting in semop because that is a perfectly valid state. > > Yes, but if function which acquires a semaphore is constructed as > my_sem_acquire function it will be safe to remove the semaphore when it is > released (if semaphore is "unlocked"). How would your code decide when to actually go ahead and remove the semaphore? Are you suggesting that the semaphore simply be removed whenever it is determined to be "unlocked"? Meaning you want to call semget() and semctl(IPC_RMID) for every single lock/unlock? Mike -- Michael B Allen PHP Active Directory SSO http://www.ioplex.com/

« previous php.internals (#27244) next »