Waits for a read lock
$wait
Obtains a read lock on a SyncReaderWriter object.
wait
The number of milliseconds to wait for a lock. A value of -1 is infinite.
成功した場合に true を、失敗した場合に false を返します。
true
false
例1 SyncReaderWriter::readlock example
<?php $readwrite = new SyncReaderWriter("FileCacheLock"); $readwrite->readlock(); /* ... */ $readwrite->readunlock(); ?>