|
The EventBase classはじめにEventBase class represents libevent's event base structure. It holds a set of events and can poll to determine which events are active.
Each event base has a
method
, or a
backend
that it uses to determine which events are ready. The recognized methods
are:
To configure event base to use, or avoid specific backend EventConfig class can be used. 警告
Do
NOT
destroy the
EventBase
object as long as resources of the associated
クラス概要
EventBase
final
class EventBase
{
/* 定数 */
const
int
EventBase::LOOP_ONCE = 1;
const
int
EventBase::LOOP_NONBLOCK = 2;
const
int
EventBase::NOLOCK = 1;
const
int
EventBase::STARTUP_IOCP = 4;
const
int
EventBase::NO_CACHE_TIME = 8;
const
int
EventBase::EPOLL_USE_CHANGELIST = 16;
/* メソッド */
public
__construct(
EventConfig
$cfg
= ?)public
void dispatch()
public
bool exit(
float
$timeout
= ?)public
void free()
public
int getFeatures()
public
string getMethod()
public
float getTimeOfDayCached()
public
bool gotExit()
public
bool gotStop()
public
bool loop(
int
$flags
= ?)public
bool priorityInit(
int
$n_priorities
)public
bool reInit()
public
bool stop()
}定義済み定数
|