Swoole\Coroutine\Lock::unlock

Release the lock

説明

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

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.