SyncSemaphore::lockDecreases the count of the semaphore or waits Description
public bool SyncSemaphore::lock
([ integer
$wait = -1
] )Decreases the count of a SyncSemaphore object or waits until the semaphore becomes non-zero. Parameters
Return ValuesA boolean of TRUE if the lock operation was successful, FALSE otherwise. ExamplesExample #1 SyncSemaphore::lock example
<?php See Also
|