Results of 1 - 10 of about 83 for Waiting (0.001 sec.)
- Set socket I/O activity timeout 12213
- « GearmanWorker::setOptions GearmanWorker::timeout » PHP Manual GearmanWorker Set socket I/O activity timeout 検索 GearmanWorker::setTimeout (PECL gearman >= 0.6.0) GearmanWorker::setTimeout — Set socket I/O activity timeout 説明 public fun
... worker -> addFunction ( "reverse" , "reverse_fn" ); # Set the timeout to 5 seconds $gmworker -> setTimeout ( 5000 ); echo "Waiting for job...\n" ; while(@ $gmworker -> work () || $gmworker -> returnCode () == GEARMAN_TIMEOUT ) { if ( $gmworker -> return ... Code () == GEARMAN_TIMEOUT ) { # Normally one would want to do something useful here ... echo "Timeout. Waiting for next job...\n" ; continue; } if ( $gmworker -> returnCode () != GEARMAN_SUCCESS ) { echo "return_code: " . $gmworker - ... workload ()); } ?> Running the worker with no submitted jobs will generate output that looks like the following: Starting Waiting for job... Timeout. Waiting for next job... Timeout. Waiting for next job... Timeout. Waiting for next job... 参考 Gearman ...
-
https://man.mtool.work/php/8.3/gearmanworker.settimeout.html
- Set socket I/O activity timeout 12118
- « GearmanWorker::setOptions GearmanWorker::timeout » PHP Manual GearmanWorker Set socket I/O activity timeout 検索 GearmanWorker::setTimeout (PECL gearman >= 0.6.0) GearmanWorker::setTimeout — Set socket I/O activity timeout 説明 public fun
... worker -> addFunction ( "reverse" , "reverse_fn" ); # Set the timeout to 5 seconds $gmworker -> setTimeout ( 5000 ); echo "Waiting for job...\n" ; while(@ $gmworker -> work () || $gmworker -> returnCode () == GEARMAN_TIMEOUT ) { if ( $gmworker -> return ... Code () == GEARMAN_TIMEOUT ) { # Normally one would want to do something useful here ... echo "Timeout. Waiting for next job...\n" ; continue; } if ( $gmworker -> returnCode () != GEARMAN_SUCCESS ) { echo "return_code: " . $gmworker - ... workload ()); } ?> Running the worker with no submitted jobs will generate output that looks like the following: Starting Waiting for job... Timeout. Waiting for next job... Timeout. Waiting for next job... Timeout. Waiting for next job... 参考 Gearman ...
-
https://man.mtool.work/php/8.3/gearmanworker.settimeout.html
- Synchronization 9781
- « Threaded::merge Threaded::notifyOne » PHP Manual Threaded Synchronization 検索 Threaded::notify (PECL pthreads >= 2.0.0) Threaded::notify — Synchronization 説明 public function Threaded::notify (): bool Send notification to the referenced
... の関数にはパラメータはありません。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 Notifications and Waiting <?php class My extends Thread { public function run () { /** cause this thread to wait **/ $this -> synchronized (function ... if (! $thread -> done ) $thread -> wait (); }, $this ); } } $my = new My (); $my -> start (); /** send notification to the waiting thread **/ $my -> synchronized (function( $thread ){ $thread -> done = true ; $thread -> notify (); }, $my ); var_dump ( $ ... Threaded notify Synchronization notification wait synchronized merge notifyOne pthreads Send referenced 成功 Notifications Waiting extends Thread cause start send waiting dump join ...
-
https://man.mtool.work/php/8.3/threaded.notify.html
- Synchronization 9781
- « Threaded::synchronized Thread » PHP Manual Threaded Synchronization 検索 Threaded::wait (PECL pthreads >= 2.0.0) Threaded::wait — Synchronization 説明 public function Threaded::wait ( int $timeout = ? ): bool Will cause the calling contex
... optional timeout in microseconds 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 Notifications and Waiting <?php class My extends Thread { public function run () { /** cause this thread to wait **/ $this -> synchronized (function ... if (! $thread -> done ) $thread -> wait (); }, $this ); } } $my = new My (); $my -> start (); /** send notification to the waiting thread **/ $my -> synchronized (function( $thread ){ $thread -> done = true ; $thread -> notify (); }, $my ); var_dump ( $ ... ynchronized timeout Thread cause notification pthreads calling context referenced optional microseconds 成功 Notifications Waiting extends start send waiting notify dump join ...
-
https://man.mtool.work/php/8.3/threaded.wait.html
- Release the lock 8939
- « Swoole\Coroutine\Lock::trylock Swoole\Event » PHP Manual Swoole\Coroutine\Lock Release the lock 検索 Swoole\Coroutine\Lock::unlock (No version information available, might only be in Git) Swoole\Coroutine\Lock::unlock — Release the lock 説
... oroutine\Lock::unlock (): bool 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 was released successfully, false otherwise. 関連キーワード: Swoole lock Coroutine Lock Release unlock io uring futex waiting パラメータ trylock Search Event information available Git function bool Unlock ...
-
https://man.mtool.work/php/8.3/swoole-coroutine-lock.unlock.html
- Release the lock 8939
- « Swoole\Coroutine\Lock::trylock Swoole\Event » PHP Manual Swoole\Coroutine\Lock Release the lock 検索 Swoole\Coroutine\Lock::unlock (No version information available, might only be in Git) Swoole\Coroutine\Lock::unlock — Release the lock 説
... oroutine\Lock::unlock (): bool 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 ... the lock was released successfully, false otherwise. 関連キーワード: Swoole lock Coroutine Lock Release unlock uring futex waiting trylock Event information available Unlock Behavior system precisely wake coroutine queue Without coroutines need wait the ...
-
https://man.mtool.work/php/8.3/swoole-coroutine-lock.unlock.html
- Synchronization 8382
- « Threaded::notify Threaded::pop » PHP Manual Threaded Synchronization 検索 Threaded::notifyOne (PECL pthreads >= 3.0.0) Threaded::notifyOne — Synchronization 説明 public function Threaded::notifyOne (): bool Send notification to the refere
... の関数にはパラメータはありません。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 Notifications and Waiting <?php class My extends Thread { public function run () { /** cause this thread to wait **/ $this -> synchronized (function ... if (! $thread -> done ) $thread -> wait (); }, $this ); } } $my = new My (); $my -> start (); /** send notification to the waiting thread **/ $my -> synchronized (function( $thread ){ $thread -> done = true ; $thread -> notifyOne (); }, $my ); var_dump ... wait synchronized pthreads Send referenced unblocks least blocked threads opposed unblocking them seen 成功 Notifications Waiting extends Thread cause ...
-
https://man.mtool.work/php/8.3/threaded.notifyone.html
- Synchronization 8096
- « parallel\Sync::wait parallel\Sync::__invoke » PHP Manual parallel\Sync Synchronization 検索 parallel\Sync::notify (1.1.0) parallel\Sync::notify — Synchronization 説明 public function parallel\Sync::notify ( bool $all = ? ) Shall notify on
... e (by default) or all threads waiting on the synchronization object 関連キーワード: parallel Sync notify Synchronization wait Search invoke function bool one de ... fault threads waiting synchronization object navigate Enter select Esc close ...
-
https://man.mtool.work/php/8.3/parallel-sync.notify.html
- Synchronization 8096
- « parallel\Sync::wait parallel\Sync::__invoke » PHP Manual parallel\Sync Synchronization 検索 parallel\Sync::notify (1.1.0) parallel\Sync::notify — Synchronization 説明 public function parallel\Sync::notify ( bool $all = ? ) Shall notify on
... e (by default) or all threads waiting on the synchronization object 関連キーワード: parallel Sync notify Synchronization wait invoke default threads waiting syn ...
-
https://man.mtool.work/php/8.3/parallel-sync.notify.html
- EXCLUSIVE LOCK を実行する 7906
- « TableSelect::limit TableSelect::lockShared » PHP Manual mysql_xdevapi\TableSelect EXCLUSIVE LOCK を実行する 検索 TableSelect::lockExclusive (No version information available, might only be in Git) TableSelect::lockExclusive — EXCLUSIVE LO
... CK を実行する 説明 public function mysql_xdevapi\TableSelect::lockExclusive ( int $lock_waiting_option = ? ): mysql_xdevapi\TableSelect EXCLUSIVE LOCK 付きで読み取り操作を実行します。 一度にアクティブになれるロックはひ ... とつだけです。 パラメータ lock_waiting_option オプションで指定できる、ロック待ちのオプション。 デフォルトは MYSQLX_LOCK_DEFAULT です。 有効な値は以下のとおりです ... Array ( [name] => Sam [age] => 42 ) ) 関連キーワード: TableSelect mysql xdevapi lockExclusive session name age Array lock waiting option ロック schema table result select row limit Search lockShared ...
-
https://man.mtool.work/php/8.3/mysql-xdevapi-tableselect.lockexclusive.html