« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 15 for acquire (0.001 sec.)
sem_acquire — セマフォを得る | PHP 8.3 12435
sem_acquire (PHP 4, PHP 5, PHP 7, PHP 8) sem_acquire — セマフォを得る 説明 function sem_acquire ( SysvSemaphore $semaphore , bool $non_blocking = false ): bool sem_acquire() はデフォルトで、(必要な場合) セマフォが確保できるまでブロックします ...
https://man.mtool.work/php/8.3/function.sem-acquire.html
sem_get — セマフォ ID を得る | PHP 8.3 10832
sem_get (PHP 4, PHP 5, PHP 7, PHP 8) sem_get — セマフォ ID を得る 説明 function sem_get ( int $key , int $max_acquire = 1 , int $permissions = 0666 , bool $auto_release = true ): SysvSemaphore | false sem_get() は、 System V セマフォを指定し ... アクセスします。 key に 0 を指定すると、 sem_get() が呼び出される度に新しい非公開のセマフォが作られます。 パラメータ key max_acquire 同時にセマフォを得ることが可能なプロセス数を max_acquire にセットします。 permissions セマフォのパーミッション。 実際には、 ... がこれにあたります。 セマフォを獲得したままにしておく必要がある間は、 オブジェクトへの参照を残しておいてください。 参考 sem_acquire() - セマフォを得る sem_release() - セマフォを解放する ftok() - パス名とプロジェクト ID を、System V IPC キーに変換する 他の ...
https://man.mtool.work/php/8.3/function.sem-get.html
The Swoole\Coroutine\Lock class | PHP 8.3 10484
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 ... mechanism, where the wait time increases by 2^n milliseconds (n being the number of failures) after each failed attempt to acquire the lock. While this approach avoids busy waiting, it introduces additional CPU scheduling overhead and latency. The corou ... oup -> wait (); }); 目次 Swoole\Coroutine\Lock::__construct — Construct a new coroutine lock Swoole\Coroutine\Lock::lock — Acquire the lock, blocking if necessary Swoole\Coroutine\Lock::trylock — Attempt to acquire the lock without blocking Swoole\Corou ...
https://man.mtool.work/php/8.3/class.swoole-coroutine-lock.html
Swoole\Coroutine\Lock::lock — Acquire the lock, blocking if necessary | PHP 8.3 10310
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 ... r 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 true if the lock was acquired successfully, ...
https://man.mtool.work/php/8.3/swoole-coroutine-lock.lock.html
The Swoole\Lock class | PHP 8.3 9944
The Swoole\Lock class (PECL swoole >= 1.9.0) はじめに クラス概要 class Swoole\Lock { /* メソッド */ public function __destruct (): void public function lock (): void public function lock_read (): void public function trylock (): void public ... :__construct — Construct a memory lock. Swoole\Lock::__destruct — Destroy a Swoole memory lock. Swoole\Lock::lock — Try to acquire the lock. It will block if the lock is not available. Swoole\Lock::lock_read — Lock a read-write lock for reading. Swoole\ ... Lock::trylock — Try to acquire the lock and return straight away even the lock is not available. Swoole\Lock::trylock_read — Try to lock a read-write loc ...
https://man.mtool.work/php/8.3/class.swoole-lock.html
sem_release — セマフォを解放する | PHP 8.3 9422
sem_release (PHP 4, PHP 5, PHP 7, PHP 8) sem_release — セマフォを解放する 説明 function sem_release ( SysvSemaphore $semaphore ): bool sem_release() は、そのセマフォが コール元のプロセスにより現在確保されている場合、解放します。 そうでない場 ... 合、警告が表示されます。 セマフォを解放した後、再び確保するには、 sem_acquire() をコールします。 パラメータ semaphore sem_get() が返すセマフォ。 戻り値 成功した場合に true を、失敗した場合に false を返 ... 待するようになりました。 これより前のバージョンでは、リソースが期待されていました。 参考 sem_get() - セマフォ ID を得る sem_acquire() - セマフォを得る 他のマニュアルの関連ページ Linux JM sem_unlink(3) Linux JM sem_close(3) Python asyncio-sync Linux JM se ...
https://man.mtool.work/php/8.3/function.sem-release.html
Swoole | PHP 8.3 8185
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 ... ole\Coroutine\Lock class Swoole\Coroutine\Lock::__construct — Construct a new coroutine lock Swoole\Coroutine\Lock::lock — Acquire the lock, blocking if necessary Swoole\Coroutine\Lock::trylock — Attempt to acquire the lock without blocking Swoole\Corou ... :__construct — Construct a memory lock. Swoole\Lock::__destruct — Destroy a Swoole memory lock. Swoole\Lock::lock — Try to acquire the lock. It will block if the lock is not available. Swoole\Lock::lock_read — Lock a read-write lock for reading. Swoole\ ... Lock::trylock — Try to acquire the lock and return straight away even the lock is not available. Swoole\Lock::trylock_read — Try to lock a read-write loc ...
https://man.mtool.work/php/8.3/book.swoole.html
Swoole\Lock::lock — Try to acquire the lock. It will block if the lock is not a... 8185
Swoole\Lock::lock (PECL swoole >= 1.9.0) Swoole\Lock::lock — Try to acquire the lock. It will block if the lock is not available. 説明 public function Swoole\Lock::lock (): void パラメータ この関数にはパラメータはありません。 戻り値 他のマニ ...
https://man.mtool.work/php/8.3/swoole-lock.lock.html
Swoole\Lock::trylock — Try to acquire the lock and return straight away even th... 8185
Swoole\Lock::trylock (PECL swoole >= 1.9.0) Swoole\Lock::trylock — Try to acquire the lock and return straight away even the lock is not available. 説明 public function Swoole\Lock::trylock (): void パラメータ この関数にはパラメータはありま ...
https://man.mtool.work/php/8.3/swoole-lock.trylock.html
Swoole\Coroutine\Lock::trylock — Attempt to acquire the lock without blocking |... 7819
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 ... , giving up, or executing other logic. パラメータ この関数にはパラメータはありません。 戻り値 Returns true if the lock was acquired successfully, false if the lock is not available. 他のマニュアルの関連ページ Python asyncio-sync Linux JM lock(2) Python ...
https://man.mtool.work/php/8.3/swoole-coroutine-lock.trylock.html
PREV 1 2 NEXT