PHP » GoLang |
login |
register |
about
|
GoLang SyncSemaphore::lock
request it (378)
GoLang replacement for PHP's SyncSemaphore::lock
[edit | history]
SyncSemaphore::lock(PECL sync >= 1.0.0) SyncSemaphore::lock — Decreases the count of the semaphore or waits Description
public bool SyncSemaphore::lock
([ int
$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
|
more
Recently updated
more
Most requested
more
Last requests
|