PHP 8.4.2 Released!

SyncReaderWriter::writeunlock

(PECL sync >= 1.0.0)

SyncReaderWriter::writeunlockReleases a write lock

説明

public SyncReaderWriter::writeunlock(): bool

Releases a write lock on a SyncReaderWriter object.

パラメータ

この関数にはパラメータはありません。

戻り値

成功した場合に true を、失敗した場合に false を返します。

例1 SyncReaderWriter::writeunlock() example

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

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top