note 116663 added to function.sem-acquire
| From: | anatoliy at ukhvanovy dot name | Date: | Fri, 06 Feb 2015 17:33:39 +0000 |
| Subject: | note 116663 added to function.sem-acquire | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-201656@lists.php.net to get a copy of this message | ||
Unfortunately, PHP does not currently support non-blocking semaphores.
If something like this is necessary you can utilize semaphores together with shared memory to create
your own non-blocking lock mechanisms.
Use a shared memory variable to mark whether or not a lock exists and then use a semaphore around
operations against that variable.
----
Server IP: 72.52.91.14
Probable Submitter: 109.110.94.63
----
Manual Page -- http://php.net/manual/en/function.sem-acquire.php
Edit -- https://master.php.net/note/edit/116663
Del: integrated -- https://master.php.net/note/delete/116663/integrated
Del: useless -- https://master.php.net/note/delete/116663/useless
Del: bad code -- https://master.php.net/note/delete/116663/bad+code
Del: spam -- https://master.php.net/note/delete/116663/spam
Del: non-english -- https://master.php.net/note/delete/116663/non-english
Del: in docs -- https://master.php.net/note/delete/116663/in+docs
Del: other reasons-- https://master.php.net/note/delete/116663
Reject -- https://master.php.net/note/reject/116663
Search -- https://master.php.net/manage/user-notes.php