Releases a write lock


(PECL sync >= 1.0.0)

SyncReaderWriter::writeunlockReleases a write lock

Описание

public bool SyncReaderWriter::writeunlock ( void )

Releases a write lock on a SyncReaderWriter object.

Список параметров

У этой функции нет параметров.

Возвращаемые значения

A boolean of TRUE if the unlock operation was successful, FALSE otherwise.

Примеры

Пример #1 SyncReaderWriter::writeunlock() example

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

Смотрите также