« Swoole\Coroutine\Lock::trylock
Swoole\Event »

Swoole\Coroutine\Lock::unlock

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

Swoole\Coroutine\Lock::unlock — Release the lock

説明

public function 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.

関連キーワード:
Swoole   lock   Coroutine   Lock   Release   unlock   uring   futex   trylock   Event   Unlock   system   coroutine   queue   Without   coroutines   wait   backoff   compete   reacquire   released
関連する関数・ページ:
swoole-lock.unlock   swoole-coroutine-lock.construct   class.swoole-coroutine-lock   swoole-coroutine-lock.lock   swoole-coroutine-lock.trylock   class.swoole-lock