$event) {
exit("event_new faild\n");
}
$flag = $flag == EV_READ ?event_base_set($event, $this->baseEvent)) {
exit("event_base_set faild\n");
}event_add($event)) {
exit("event_add faild\n");
}
//$this->arr[] = $eventloop()
{
$ret = event_base_loop($this->baseEvent);
if ($ret == 1) {
exit("no events were registered\n");
} else if ($ret == -1) {
exit("event_base_loop faild