Results of 1 - 10 of about 22 for Coroutine (0.002 sec.)
- The Swoole\Coroutine\Lock class | PHP 8.3 12154
- The Swoole\Coroutine\Lock class (No version information available, might only be in Git) はじめに Swoole 6.0.1 introduced a coroutine lock that supports inter-process and inter-thread sharing. This lock is designed with non-blocking behavio
... r and enables efficient coroutine synchronization in multi-process and multi-thread environments. When compiled with the --enable-iouring option and the Lin ... ux kernel supports the io_uring futex feature, Swoole's coroutine lock implements synchronization using io_uring futex . In this case, coroutines wait for lock wakeups using an efficient q ... ueuing mechanism, significantly improving performance. Without io_uring futex , the coroutine lock falls back to an exponential backoff sleep mechanism, where the wait time increases by 2^n milliseconds (n being the ...
-
https://man.mtool.work/php/8.3/class.swoole-coroutine-lock.html
- 定義済み定数 | PHP 8.3 12120
- 定義済み定数 以下の定数が定義されています。 この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、 実行時に動的にロードされている場合のみ使用可能です。 SWOOLE_VERSION ( string ) Swoole version. SWOOLE_VERSION_ID ( int ) Swoole ve
... rmal pipe data. SWOOLE_ERROR_SERVER_WORKER_UNPROCESSED_DATA ( int ) Server worker unprocessed data. SWOOLE_ERROR_CO_OUT_OF_COROUTINE ( int ) Coroutine out of coroutine. SWOOLE_ERROR_CO_HAS_BEEN_BOUND ( int ) Coroutine has been bound. SWOOLE_ERROR_CO_HAS_B ... EEN_DISCARDED ( int ) Coroutine has been discarded. SWOOLE_ERROR_CO_MUTEX_DOUBLE_UNLOCK ( int ) Coroutine mutex double unlock. SWOOLE_ERROR_CO_BLOCK_OBJEC ... T_LOCKED ( int ) Coroutine block object locked. SWOOLE_ERROR_CO_BLOCK_OBJECT_WAITING ( int ) Coroutine block object waiting. SWOOLE_ERROR_CO_YIELD_FA ...
-
https://man.mtool.work/php/8.3/swoole.constants.html
- The Swoole\Coroutine class | PHP 8.3 11262
- The Swoole\Coroutine class (PECL swoole >= 2.0.0) はじめに クラス概要 class Swoole\Coroutine { /* メソッド */ public static function call_user_func ( callable $callback , mixed ...$args ): mixed public static function call_user_func_array (
... id (): ReturnType public static function resume (): ReturnType public static function suspend (): ReturnType } 目次 Swoole\Coroutine::call_user_func — Call a callback given by the first parameter Swoole\Coroutine::call_user_func_array — Call a callback wi ... th an array of parameters Swoole\Coroutine::cli_wait — Description Swoole\Coroutine::create — Description Swoole\Coroutine::getuid — Description Swoole\Coroutine::re ... sume — Description Swoole\Coroutine::suspend — Description 他のマニュアルの関連ページ Linux JM getuid(2) Linux JM wait(2) Python call Vim channel Linux JM get ...
-
https://man.mtool.work/php/8.3/class.swoole-coroutine.html
- Swoole\Coroutine\Lock::lock — Acquire the lock, blocking if necessary | PHP 8.3 10252
- Swoole\Coroutine\Lock::lock (No version information available, might only be in Git) Swoole\Coroutine\Lock::lock — Acquire the lock, blocking if necessary 説明 public function Swoole\Coroutine\Lock::lock (): bool When executing the lock ope
... ration, 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 ca ... lls unlock(), the waiting coroutine will be awakened and try to acquire the lock again. パラメータ この関数にはパラメータはありません。 戻り値 Returns true if ...
-
https://man.mtool.work/php/8.3/swoole-coroutine-lock.lock.html
- Swoole | PHP 8.3 9359
- Swoole はじめに Swoole is a parallel network communication engine based on asynchronous event-driven and coroutine, written in C++, providing coroutine and high-performance network programming support for PHP. It provides various network se
... nection\Iterator::rewind — Rewinds iterator Swoole\Connection\Iterator::valid — Check if current position is valid. Swoole\Coroutine — The Swoole\Coroutine class Swoole\Coroutine::call_user_func — Call a callback given by the first parameter Swoole\Corout ... ine::call_user_func_array — Call a callback with an array of parameters Swoole\Coroutine::cli_wait — Description Swoole\Coroutine::create — Description Swoole\Coroutine::getuid — Description Swoole\Coroutine::re ... sume — Description Swoole\Coroutine::suspend — Description Swoole\Coroutine\Lock — The Swoole\Coroutine\Lock class Swoole\Coroutine\Lock::__construct — Constr ...
-
https://man.mtool.work/php/8.3/book.swoole.html
- Swoole\Coroutine\Lock::__construct — Construct a new coroutine lock | PHP 8.3 9258
- Swoole\Coroutine\Lock::__construct (No version information available, might only be in Git) Swoole\Coroutine\Lock::__construct — Construct a new coroutine lock 説明 public function Swoole\Coroutine\Lock::__construct (): void Create a new coroutine
...
-
https://man.mtool.work/php/8.3/swoole-coroutine-lock.construct.html
- Swoole\Coroutine\Lock::trylock — Attempt to acquire the lock without blocking |... 8955
- Swoole\Coroutine\Lock::trylock (No version information available, might only be in Git) Swoole\Coroutine\Lock::trylock — Attempt to acquire the lock without blocking 説明 public function Swoole\Coroutine\Lock::trylock (): bool When calling
... the lock operation, if the lock is already held by another coroutine, the function will immediately return false without suspending the current coroutine or yielding CPU control. This non-blo ...
-
https://man.mtool.work/php/8.3/swoole-coroutine-lock.trylock.html
- The Swoole\Runtime class | PHP 8.3 8366
- The Swoole\Runtime class (No version information available, might only be in Git) はじめに Swoole\Runtime provides coroutine support for various PHP functions through hook mechanism, allowing synchronous code to work asynchronously in coroutine
... tine environment. クラス概要 class Swoole\Runtime { /* メソッド */ public static function enableCoroutine ( int $flags = SWOOLE_HOOK_ALL ): void public static function getHookFlags (): int public static function setHookFlags ( i ... nt $flags ): bool } 目次 Swoole\Runtime::enableCoroutine — Enable coroutine for specified functions Swoole\Runtime::getHookFlags — Get current hook flags Swoole\Runtime::setHookFl ... ags — Set hook flags for coroutine 他のマニュアルの関連ページ Linux JM __after_morecore_hook(3) Linux JM __free_hook(3) Linux JM malloc_hook(3) Linux JM com_ ...
-
https://man.mtool.work/php/8.3/class.swoole-runtime.html
- Swoole\Coroutine\Lock::unlock — Release the lock | PHP 8.3 8316
- 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 With io_uring futex: the sys
... tem 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 ...
-
https://man.mtool.work/php/8.3/swoole-coroutine-lock.unlock.html
- Swoole\Coroutine::cli_wait — Description | PHP 8.3 7996
- Swoole\Coroutine::cli_wait (PECL swoole >= 2.0.0) Swoole\Coroutine::cli_wait — Description 説明 public static function Swoole\Coroutine::cli_wait (): ReturnType パラメータ この関数にはパラメータはありません。 戻り値 他のマニュアルの関連ペー
...
-
https://man.mtool.work/php/8.3/swoole-coroutine.cli-wait.html