Results of 1 - 7 of about 7 for persist (0.004 sec.)
- About event persistence | PHP 8.3 12559
- About event persistence By default, whenever a pending event becomes active (because its file descriptor is ready to read or write, or because its timeout expires), it becomes non-pending right before its callback is executed. Thus, to make
... the event pending again one may call Event::add() on it again from inside the callback function. If the Event::PERSIST flag is set on an event, however, the event is persistent . This means that event remains pending even when its callback i ... s activated. Event::del() method can be called to make it non-pending. The timeout on a persistent event resets whenever the event's callback runs. Thus, if one has an event with flags Event::READ | Event::PERSIST and ... d since the event last became active. See also » Fast portable non-blocking network programming with Libevent, About Event Persistence 他のマニュアルの関連ページ Linux JM make(1) Linux JM epoll_wait(2) Linux JM epoll_pwait(2) Linux JM _Exit(2) Linux JM ...
-
https://man.mtool.work/php/8.3/event.persistence.html
- The Event class | PHP 8.3 10142
- The Event class (PECL event >= 1.2.6-beta) はじめに Event class represents and event firing on a file descriptor being ready to read from or write to; a file descriptor becoming ready to read from or write to(edge-triggered I/O only); a tim
... ive state. To handle events user may register a callback which is called when event becomes active. If event is configured persistent , it remains pending. If it is not persistent, it stops being pending when it's callback runs. Event::del() method dele ... ns of Event::add() method it could be added again. クラス概要 final class Event { /* 定数 */ const int ET = 32 ; const int PERSIST = 16 ; const int READ = 2 ; const int WRITE = 4 ; const int SIGNAL = 8 ; const int TIMEOUT = 1 ; /* プロパティ */ public r ... ( EventBase $base , callable $cb , mixed $arg = ? ): Event } プロパティ pending Whether event is pending. See About event persistence . 定義済み定数 Event::ET Indicates that the event should be edge-triggered, if the underlying event base backend suppo ...
-
https://man.mtool.work/php/8.3/class.event.html
- Connection handling and persistence | PHP 8.3 10142
- Connection handling and persistence 注意 : On Unix platforms, the extension is sensitive to scripts that use the fork() system call without also calling exec(). Users are advised not to re-use MongoDB\Driver\Manager instances in a forked ch
... ild process. Connection and topology persistence (PHP version since 1.2.0) All versions of the extension since 1.2.0 persist the » libmongoc client object in the PHP w ... a hash is created from its arguments (i.e. URI string and array options). The extension will attempt to find a previously persisted » libmongoc client object for that hash. If an existing client cannot be found for the hash, a new client will be create ... d and persisted for future use. This behavior can be disabled via the "disableClientPersistence" driver option. Each client contains its ...
-
https://man.mtool.work/php/8.3/mongodb.connection-handling.html
- eio_get_event_stream — 内部での libeio との通信に使う変数を表すストリームを取得... 8451
- eio_get_event_stream (PECL eio >= 0.3.1b) eio_get_event_stream — 内部での libeio との通信に使う変数を表すストリームを取得する 説明 function eio_get_event_stream (): mixed eio_get_event_stream() は、内部での libeio との通信に使う変数を表すス
... s_cb" , "mkdir data" ); /* some other eio_* calls here ... */ // set event flags event_set ( $event , $fd , EV_READ /*| EV_PERSIST*/ , "my_eio_poll" , array( $event , $base )); // set event base event_base_set ( $event , $base ); // enable event event_a ...
-
https://man.mtool.work/php/8.3/function.eio-get-event-stream.html
- 例 | PHP 8.3 7488
- 例 例1 リクエストの取り消し <?php /* eio_nop() が終わったら呼ばれます */ function my_nop_cb ( $data , $result ) { echo "my_nop " , $data , "\n" ; } // この eio_nop() の呼び出しは取り消されます $req = eio_nop ( EIO_PRI_DEFAULT , "my_nop_cb"
... b" , "nop data" ); /* その他の eio_* コール ... */ // イベントフラグを設定します event_set ( $event , $fd , EV_READ /*| EV_PERSIST*/ , "my_eio_poll" , array( $event , $base )); // イベントベースを設定します event_base_set ( $event , $base ); // イベント ...
-
https://man.mtool.work/php/8.3/eio.examples.html
- 例 | PHP 8.3 7488
- 例 例1 Simple HTTP client <?php // Read callback function readcb ( $bev , $base ) { //$input = $bev->input; //$bev->getInput(); //$pos = $input->search("TTP"); $pos = $bev -> input -> search ( "TTP" ); while (( $n = $bev -> input -> remove
... r , 0750 , EIO_PRI_DEFAULT , "my_nop_cb" ); $event = new Event ( $base , eio_get_event_stream (), Event :: READ | Event :: PERSIST , function ( $fd , $events , $base ) { echo "step 5\n" ; while ( eio_nreqs ()) { eio_poll (); } $base -> stop (); }, $base ... ts\n" ; } /* }}} */ /* {{{ Base */ $base = new EventBase (); $event = new Event ( $base , STDIN , Event :: READ | Event :: PERSIST , function ( $fd , $events , $arg ) { static $max_iterations = 0 ; if (++ $max_iterations >= 5 ) { /* exit after 5 iterati ...
-
https://man.mtool.work/php/8.3/event.examples.html
- Eio | PHP 8.3 7252
- Eio はじめに この拡張モジュールは、非同期 POSIX I/O 機能を提供します。 Marc Lehmann による » libeio C ライブラリを利用します。 注意 : この拡張モジュールは Windows 環境では利用できません。 警告 注意すべき点は、個々のリクエストが単一のスレッド
... , "mkdir data" ); /* その他の eio_* コール ... */ // イベントフラグを設定します event_set ( $event , $fd , EV_READ /*| EV_PERSIST*/ , "my_eio_poll" , array( $event , $base )); // イベントベースを設定します event_base_set ( $event , $base ); // イベント ...
-
https://man.mtool.work/php/8.3/book.eio.html
PREV
1
NEXT