« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 175 for Thread (0.009 sec.)
Identification 8030
« Thread::getCreatorId Thread::getCurrentThreadId » PHP Manual Thread Identification 検索 Thread::getCurrentThread (PECL pthreads >= 2.0.0) Thread::getCurrentThread — Identification 説明 public static function Thread::getCurrentThread (): Thread ... hread Return a reference to the currently executing Thread パラメータ この関数にはパラメータはありません。 戻り値 An object representing the currently executing Thread 例 例1 Return ... the currently executing Thread <?php class My extends Thread { public function run () { var_dump ( Thread :: getCurrentThread ()); } } $my = new My (); $ ... my -> start (); ?> 上の例の出力は以下となります。 object(My)#2 (0) { } 関連キーワード: Thread getCurrentThread Identification currently executing My function Return パラメータ object my getCreatorId Search getCurrent ...
https://man.mtool.work/php/8.3/thread.getcurrentthread.html
状態を検出する 8030
« Thread::getThreadId Thread::isStarted » PHP Manual Thread 状態を検出する 検索 Thread::isJoined (PECL pthreads >= 2.0.0) Thread::isJoined — 状態を検出する 説明 public function Thread::isJoined (): bool このスレッドが同期されているかどうかを ... ん。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 スレッドの状態を検出する <?php class My extends Thread { public function run () { $this -> synchronized (function( $thread ){ if (! $thread -> done ) $thread -> wait (); }, $thi ... s ); } } $my = new My (); $my -> start (); var_dump ( $my -> isJoined ()); $my -> synchronized (function( $thread ){ $thread -> done = true ; $thread -> notify (); }, $my ); ?> 上の例の出力は以下となります。 bool(false) 関連キーワード: ... Thread thread my 検出 isJoined function bool スレッド パラメータ 場合 true false My synchronized getThreadId Search isStarted pthreads 同 ...
https://man.mtool.work/php/8.3/thread.isjoined.html
Identification 8030
« Thread::getCreatorId Thread::getCurrentThreadId » PHP Manual Thread Identification 検索 Thread::getCurrentThread (PECL pthreads >= 2.0.0) Thread::getCurrentThread — Identification 説明 public static function Thread::getCurrentThread (): Thread ... hread Return a reference to the currently executing Thread パラメータ この関数にはパラメータはありません。 戻り値 An object representing the currently executing Thread 例 例1 Return ... the currently executing Thread <?php class My extends Thread { public function run () { var_dump ( Thread :: getCurrentThread ()); } } $my = new My (); $ ... my -> start (); ?> 上の例の出力は以下となります。 object(My)#2 (0) { } 関連キーワード: Thread getCurrentThread Identification currently executing Return getCreatorId getCurrentThreadId pthreads static reference repre ...
https://man.mtool.work/php/8.3/thread.getcurrentthread.html
Identification 8030
« Thread::getCurrentThread Thread::getThreadId » PHP Manual Thread Identification 検索 Thread::getCurrentThreadId (PECL pthreads >= 2.0.0) Thread::getCurrentThreadId — Identification 説明 public static function Thread::getCurrentThreadId () ... : int Will return the identity of the currently executing Thread パラメータ この関数にはパラメータはありません。 戻り値 A numeric identity 例 例1 Return the identity of the currently exec ... uting Thread <?php class My extends Thread { public function run () { printf ( "%s is Thread #%lu\n" , __CLASS__ , Thread :: getCurrent ... ThreadId ()); } } $my = new My (); $my -> start (); ?> 上の例の出力は以下となります。 My is Thread #123456778899 関連キーワード: Thread getCurrentThreadId Identification identity currently executing getCurrentThread getTh ...
https://man.mtool.work/php/8.3/thread.getcurrentthreadid.html
状態を検出する 8030
« Thread::getThreadId Thread::isStarted » PHP Manual Thread 状態を検出する 検索 Thread::isJoined (PECL pthreads >= 2.0.0) Thread::isJoined — 状態を検出する 説明 public function Thread::isJoined (): bool このスレッドが同期されているかどうかを ... ん。 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 スレッドの状態を検出する <?php class My extends Thread { public function run () { $this -> synchronized (function( $thread ){ if (! $thread -> done ) $thread -> wait (); }, $thi ... s ); } } $my = new My (); $my -> start (); var_dump ( $my -> isJoined ()); $my -> synchronized (function( $thread ){ $thread -> done = true ; $thread -> notify (); }, $my ); ?> 上の例の出力は以下となります。 bool(false) 関連キーワード: ... Thread thread 検出 isJoined スレッド synchronized getThreadId isStarted pthreads 同期 成功 extends wait start dump notify ...
https://man.mtool.work/php/8.3/thread.isjoined.html
Identification 8008
« Thread::getCurrentThread Thread::getThreadId » PHP Manual Thread Identification 検索 Thread::getCurrentThreadId (PECL pthreads >= 2.0.0) Thread::getCurrentThreadId — Identification 説明 public static function Thread::getCurrentThreadId () ... : int Will return the identity of the currently executing Thread パラメータ この関数にはパラメータはありません。 戻り値 A numeric identity 例 例1 Return the identity of the currently exec ... uting Thread <?php class My extends Thread { public function run () { printf ( "%s is Thread #%lu\n" , __CLASS__ , Thread :: getCurrent ... ThreadId ()); } } $my = new My (); $my -> start (); ?> 上の例の出力は以下となります。 My is Thread #123456778899 関連キーワード: Thread getCurrentThreadId Identification identity My function currently executing パラメータ ...
https://man.mtool.work/php/8.3/thread.getcurrentthreadid.html
Thread クラス 7863
« Threaded::wait Thread::getCreatorId » PHP Manual pthreads Thread クラス 検索 Thread クラス (PECL pthreads >= 2.0.0) はじめに このオブジェクトの start メソッドが呼ばれると、run メソッドのコードが個別のスレッドで並列処理されます。 run メソッ ... ドの実行後は Thread はすぐに終了し、作成元のスレッドに適切な時期に join します。 警告 Thread をいつ join させるのかをエンジンに決めさせていると ... 、予期せぬ振る舞いを引き起こすことがあります。 可能な限り、プログラマーが明示的に指定するようにしましょう。 クラス概要 class Thread extends Threaded implements Countable , Traversable , ArrayAccess { /* メソッド */ public function getCreatorId (): int pu ... blic static function getCurrentThread (): Thread public static function getCurrentThreadId (): int public function getThreadId (): int public function isJoined ...
https://man.mtool.work/php/8.3/class.thread.html
Thread クラス 7863
« Threaded::wait Thread::getCreatorId » PHP Manual pthreads Thread クラス 検索 Thread クラス (PECL pthreads >= 2.0.0) はじめに このオブジェクトの start メソッドが呼ばれると、run メソッドのコードが個別のスレッドで並列処理されます。 run メソッ ... ドの実行後は Thread はすぐに終了し、作成元のスレッドに適切な時期に join します。 警告 Thread をいつ join させるのかをエンジンに決めさせていると ... 、予期せぬ振る舞いを引き起こすことがあります。 可能な限り、プログラマーが明示的に指定するようにしましょう。 クラス概要 class Thread extends Threaded implements Countable , Traversable , ArrayAccess { /* メソッド */ public function getCreatorId (): int pu ... blic static function getCurrentThread (): Thread public static function getCurrentThreadId (): int public function getThreadId (): int public function isJoined ...
https://man.mtool.work/php/8.3/class.thread.html
Synchronization 7840
« 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 ... s 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 Notifications and Waiting <?php class My extends Thread { public function run () { /** cause this thread to wait **/ $this -> synchronized (function( $thread ){ if (! $thread -> ... done ) $thread -> wait (); }, $this ); } } $my = new My (); $my -> start (); /** send notification to the waiting thread **/ $my -> synch ... ronized (function( $thread ){ $thread -> done = true ; $thread -> notify (); }, $my ); var_dump ( $my -> join ()); ?> 上の例の出力は以下となります。 ...
https://man.mtool.work/php/8.3/threaded.wait.html
Synchronization 7840
« 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 ... s 戻り値 成功した場合に true を、失敗した場合に false を返します。 例 例1 Notifications and Waiting <?php class My extends Thread { public function run () { /** cause this thread to wait **/ $this -> synchronized (function( $thread ){ if (! $thread -> ... done ) $thread -> wait (); }, $this ); } } $my = new My (); $my -> start (); /** send notification to the waiting thread **/ $my -> synch ... ronized (function( $thread ){ $thread -> done = true ; $thread -> notify (); }, $my ); var_dump ( $my -> join ()); ?> 上の例の出力は以下となります。 ...
https://man.mtool.work/php/8.3/threaded.wait.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT