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.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top