array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'syncmutex.unlock.php', 1 => 'SyncMutex::unlock', 2 => 'Unlocks the mutex', ), 'up' => array ( 0 => 'class.syncmutex.php', 1 => 'SyncMutex', ), 'prev' => array ( 0 => 'syncmutex.lock.php', 1 => 'SyncMutex::lock', ), 'next' => array ( 0 => 'class.syncsemaphore.php', 1 => 'SyncSemaphore', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/sync/syncmutex/unlock.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL sync >= 1.0.0)
SyncMutex::unlock — Unlocks the mutex
Decreases the internal counter of a SyncMutex object. When the internal counter reaches zero, the actual lock on the object is released.
allÖrnek 1 SyncMutex::unlock() example
<?php
$mutex = new SyncMutex("UniqueName");
$mutex->lock();
/* ... */
$mutex->unlock();
?>