Swoole\Coroutine\Lock::unlock
(No version information available, might only be in Git)
Swoole\Coroutine\Lock::unlock — Release the lock
说明
Unlock Behavior
-
With io_uring futex: the system will precisely wake up one coroutine in the waiting queue.
-
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.