update : 2015.11.03
php.shukuma.com검색:
|
The EvLoop class(PECL ev >= 0.2.0) 소개Represents an event loop that is always distinct from the default loop . Unlike the default loop , it cannot handle EvChild watchers. Having threads we have to create a loop per thread, and use the the default loop in the parent thread. The default event loop is initialized automatically by Ev . It is accessable via methods of the Ev class, or via EvLoop::defaultLoop() method. 클래스 개요
final
EvLoop
{
/* 프로퍼티 */
public
$data
;
public
$backend
;
public
$is_default_loop
;
public
$iteration
;
public
$pending
;
public
$io_interval
;
public
$timeout_interval
;
public
$depth
;
/* 메소드 */
final
public
EvChild
child
(
string
$pid
,
string
$trace
,
string
$callback
[,
string
$data
[,
string
$priority
]] )
public
__construct
([
int
$flags
[,
mixed
$data
= NULL
[,
double
$io_interval
= 0.0
[,
double
$timeout_interval
= 0.0
]]]] )
public
static
EvLoop
defaultLoop
([
int
$flags
= Ev::FLAG_AUTO
[,
mixed
$data
= NULL
[,
double
$io_interval
= 0.
[,
double
$timeout_interval
= 0.
]]]] )
final
public
EvEmbed
embed
(
string
$other
[,
string
$callback
[,
string
$data
[,
string
$priority
]]] )
final
public
EvIo
io
(
mixed
$fd
,
int
$events
,
callable
$callback
[,
mixed
$data
= NULL
[,
int
$priority
= 0
]] )
final
public
EvPeriodic
periodic
(
double
$offset
,
double
$interval
,
callable
$callback
[,
mixed
$data
= NULL
[,
int
$priority
= 0
]] )
final
public
EvSignal
signal
(
int
$signum
,
callable
$callback
[,
mixed
$data
= NULL
[,
int
$priority
= 0
]] )
final
public
EvStat
stat
(
string
}$path
,
double
$interval
,
callable
$callback
[,
mixed
$data
= NULL
[,
int
$priority
= 0
]] )프로퍼티
Table of Contents
|