SyncReaderWriter::writeunlock

(PECL sync >= 1.0.0)
Releases a write lock
public bool SyncReaderWriter::writeunlock ( void )

Releases a write lock on a SyncReaderWriter object.

Returns:

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

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

See also:

SyncReaderWriter::writelock() -

doc_php
2016-02-24 16:05:39
Comments
Leave a Comment

Please login to continue.