PHP 8.1.0 Released!

SyncReaderWriter::writeunlock

(PECL sync >= 1.0.0)

SyncReaderWriter::writeunlockReleases a write lock

Descrição

public SyncReaderWriter::writeunlock(): bool

Releases a write lock on a SyncReaderWriter object.

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

Retorna true em caso de sucesso ou false em caso de falha.

Exemplos

Exemplo #1 SyncReaderWriter::writeunlock() example

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

Veja Também

add a note add a note

User Contributed Notes

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