Swoole\Coroutine\Lock::lockAcquire the lock, blocking if necessary 説明public bool Swoole\Coroutine\Lock::lock()
When executing the lock operation, if the lock is already held by another coroutine, the current coroutine will actively yield CPU control and enter a suspended state. When the coroutine holding the lock calls unlock(), the waiting coroutine will be awakened and try to acquire the lock again. パラメータこの関数にはパラメータはありません。 戻り値
Returns |