SyncReaderWriter::writeunlock

(PECL sync >= 1.0.0)

SyncReaderWriter::writeunlockReleases a write lock

說明

public SyncReaderWriter::writeunlock(): bool

Releases a write lock on a SyncReaderWriter object.

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

成功時返回 true, 或者在失敗時返回 false。

范例

示例 #1 SyncReaderWriter::writeunlock() example

<?php
$readwrite 
= new SyncReaderWriter("FileCacheLock");
$readwrite->writelock();
/* ... */
$readwrite->writeunlock();
?>

參見