SyncReaderWriter::readunlock

(PECL sync >= 1.0.0)
Releases a read lock
public bool SyncReaderWriter::readunlock ( void )

Releases a read lock on a SyncReaderWriter object.

Returns:

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

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

See also:

SyncReaderWriter::readlock() -

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

Please login to continue.