(PECL sync >= 1.0.0)
SyncReaderWriter::writeunlock — Releases a write lock
此函數(shù)沒有參數(shù)。
成功時返回 true
, 或者在失敗時返回 false
。
示例 #1 SyncReaderWriter::writeunlock() example
<?php
$readwrite = new SyncReaderWriter("FileCacheLock");
$readwrite->writelock();
/* ... */
$readwrite->writeunlock();
?>