PHP » GoLang |
login |
register |
about
|
GoLang SyncMutex::lock
request it (375)
GoLang replacement for PHP's SyncMutex::lock
[edit | history]
SyncMutex::lock(PECL sync >= 1.0.0) SyncMutex::lock — Waits for an exclusive lock Description
public bool SyncMutex::lock
([ int
$wait = -1
] )Obtains an exclusive lock on a SyncMutex object. If the lock is already acquired, then this increments an internal counter. Parameters
Return ValuesA boolean of TRUE if the lock was obtained, FALSE otherwise. ExamplesExample #1 SyncMutex::lock() example
<?php See Also
|
more
Recently updated
more
Most requested
more
Last requests
|