array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'swoole-coroutine-lock.unlock.php', 1 => 'Swoole\\Coroutine\\Lock::unlock', 2 => 'Release the lock', ), 'up' => array ( 0 => 'class.swoole-coroutine-lock.php', 1 => 'Swoole\\Coroutine\\Lock', ), 'prev' => array ( 0 => 'swoole-coroutine-lock.trylock.php', 1 => 'Swoole\\Coroutine\\Lock::trylock', ), 'next' => array ( 0 => 'class.swoole-event.php', 1 => 'Swoole\\Event', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/swoole/swoole/coroutine/lock/unlock.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Swoole\Coroutine\Lock::unlock

(No version information available, might only be in Git)

Swoole\Coroutine\Lock::unlockRelease the lock

Опис

public Swoole\Coroutine\Lock::unlock(): bool

Unlock Behavior

  1. With io_uring futex: the system will precisely wake up one coroutine in the waiting queue.

  2. Without io_uring futex: waiting coroutines need to wait for their backoff time to end and compete to reacquire the lock.

Параметри

У цієї функції немає параметрів.

Значення, що повертаються

Returns true if the lock was released successfully, false otherwise.