PHP 8.5.0 Alpha 1 available for testing

Voting

: max(zero, two)?
(Example: nine)

The Note You're Voting On

anatoliy at ukhvanovy dot name
10 years ago
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.

<< Back to user notes page

To Top