The Ev classIntroductionEv is a static class providing access to the default loop and to some common operations. Class synopsis
Ev
final
class Ev
{
/* Constants */
const
int
Ev::FLAG_AUTO = 0;
const
int
Ev::FLAG_NOENV = 16777216;
const
int
Ev::FLAG_FORKCHECK = 33554432;
const
int
Ev::FLAG_NOINOTIFY = 1048576;
const
int
Ev::FLAG_SIGNALFD = 2097152;
const
int
Ev::FLAG_NOSIGMASK = 4194304;
const
int
Ev::RUN_NOWAIT = 1;
const
int
Ev::RUN_ONCE = 2;
const
int
Ev::BREAK_CANCEL = 0;
const
int
Ev::BREAK_ONE = 1;
const
int
Ev::BREAK_ALL = 2;
const
int
Ev::MINPRI = -2;
const
int
Ev::MAXPRI = 2;
const
int
Ev::READ = 1;
const
int
Ev::WRITE = 2;
const
int
Ev::TIMER = 256;
const
int
Ev::PERIODIC = 512;
const
int
Ev::SIGNAL = 1024;
const
int
Ev::CHILD = 2048;
const
int
Ev::STAT = 4096;
const
int
Ev::IDLE = 8192;
const
int
Ev::PREPARE = 16384;
const
int
Ev::CHECK = 32768;
const
int
Ev::EMBED = 65536;
const
int
Ev::CUSTOM = 16777216;
const
int
Ev::ERROR = 2147483648;
const
int
Ev::BACKEND_SELECT = 1;
const
int
Ev::BACKEND_POLL = 2;
const
int
Ev::BACKEND_EPOLL = 4;
const
int
Ev::BACKEND_KQUEUE = 8;
const
int
Ev::BACKEND_DEVPOLL = 16;
const
int
Ev::BACKEND_PORT = 32;
const
int
Ev::BACKEND_ALL = 63;
const
int
Ev::BACKEND_MASK = 65535;
/* Methods */
final
public
static
int backend()
final
public
static
int depth()
final
public
static
int embeddableBackends()
final
public
static
void feedSignal(
int
$signum
)final
public
static
void feedSignalEvent(
int
$signum
)final
public
static
int iteration()
final
public
static
float now()
final
public
static
void nowUpdate()
final
public
static
int recommendedBackends()
final
public
static
void resume()
final
public
static
void run(
int
$flags
= ?)final
public
static
void sleep(
float
$seconds
)final
public
static
void stop(
int
$how
= ?)final
public
static
int supportedBackends()
final
public
static
void suspend()
final
public
static
float time()
final
public
static
void verify()
}Predefined ConstantsFlags passed to create a loop:
Flags passed to Ev::run , or EvLoop::run
Flags passed to Ev::stop , or EvLoop::stop
Watcher priorities:
Bit masks of (received) events:
Backend flags:
|