EventConfig::__construct
(PECL event >= 1.2.6-beta)
EventConfig::__construct — Constructs EventConfig object
Описание
public
EventConfig::__construct
( void
)
Constructs EventConfig object which could be passed to EventBase::__construct() constructor.
Список параметров
У этой функции нет параметров.
Возвращаемые значения
Returns EventConfig object.
Примеры
Пример #1 EventConfig::__construct() example
<?php
// Avoiding "select" method
$cfg = new EventConfig();
if ($cfg->avoidMethod("select")) {
echo "`select' method avoided\n";
}
// Create event_base associated with the config
$base = new EventBase($cfg);
/* Now $base is configured to avoid select backend(method) */
?>
Смотрите также
- EventBase::__construct() - Constructs EventBase object
- Функция EventConfig::avoidMethod() - Tells libevent to avoid specific event method
- Функция EventConfig::__construct() - Constructs EventConfig object
- Функция EventConfig::requireFeatures() - Enters a required event method feature that the application demands
- Функция EventConfig::setMaxDispatchInterval() - Prevents priority inversion
Коментарии
404 Not Found