On Wed, 3 Jan 2007 01:20:41 +0100
"Wojciech Malota" <[EMAIL PROTECTED]> 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/

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to