Lines Matching +full:10 +full:base +full:- +full:te
2 * Copyright 2003-2007 Niels Provos <provos@citi.umich.edu>
3 * Copyright 2007-2012 Niels Provos and Nick Mathewson
28 * Mon 03/10/2003 - Modified by Davide Libenzi <davidel@xmailserver.org>
36 #include "event2/event-config.h"
37 #include "../util-internal.h"
73 static struct event_base *base; variable
90 widx -= num_pipes; in read_cb()
94 writes--; in read_cb()
104 static struct timeval ts, te; in run_once() local
109 event_assign(&events[i], base, cp[0], EV_READ | EV_PERSIST, read_cb, (void *)(ev_intptr_t) i); in run_once()
113 event_base_loop(base, EVLOOP_ONCE | EVLOOP_NONBLOCK); in run_once()
127 event_base_loop(base, EVLOOP_ONCE | EVLOOP_NONBLOCK); in run_once()
130 evutil_gettimeofday(&te, NULL); in run_once()
137 evutil_timersub(&te, &ts, &te); in run_once()
139 return (&te); in run_once()
162 while ((c = getopt(argc, argv, "n:a:w:m:l")) != -1) {
191 if (setrlimit(RLIMIT_NOFILE, &rl) == -1) {
210 base = event_base_new_with_config(cfg);
213 base = event_base_new();
217 if (pipe(cp) == -1) {
219 if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, cp) == -1) {
231 tv->tv_sec * 1000000L + tv->tv_usec);