Re: Semaphores - feature request
| From: | Wojciech Malota | Date: | Wed, 03 Jan 2007 05:51:57 +0000 |
| Subject: | Re: Semaphores - feature request | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-27245@lists.php.net to get a copy of this message | ||
> 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?
I've wrote about it in my first letter.
There are two functions: my_sem_acquire and my_sem_release.
Wojciech Malota