php8.5
Home/ Manual/ sync / syncreaderwriter/ SyncReaderWriter::readunlock

SyncReaderWriter::readunlock

PHP function Edit on GitHub ✎

(PECL sync >= 1.0.0)

Releases a read lock

Description

SyncReaderWriter::readunlock(): bool

Releases a read lock on a SyncReaderWriter object.

Parameters Parameters

Return Values

Success

Examples

SyncReaderWriter::readunlock() example

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

See Also

  • SyncReaderWriter::readlock

Source: reference/sync/syncreaderwriter/readunlock.xml · from the official PHP manual (php/doc-en)