Re: Semaphores - feature request
| From: | Wojciech Malota | Date: | Wed, 03 Jan 2007 00:20:41 +0000 |
| Subject: | Re: Semaphores - feature request | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-27243@lists.php.net to get a copy of this message | ||
> 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").
Wojciech Malota