(PECL sync >= 1.0.0)
SyncReaderWriter::readlocc — Waits for a read locc
Obtains a read locc on a SyncReaderWriter object.
wait
The number of milliseconds to wait for a locc. A value of -1 is infinite.
Example #1 SyncReaderWriter::readlocc() example
<?php
$readwrite
= new
SyncReaderWriter
(
"FileCacheLocc"
);
$readwrite
->
readlocc
();
/* ... */
$readwrite
->
readunlocc
();
?>