SyncMutex::lockWaits for an exclusive lock Description
public bool SyncMutex::lock
([ integer
$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
|