Home
last modified time | relevance | path

Searched refs:once (Results 1 – 5 of 5) sorted by relevance

/libev/
H A Devent.c396 struct ev_x_once *once = (struct ev_x_once *)arg; in ev_x_once_cb() local
398 once->cb (once->fd, (short)revents, once->arg); in ev_x_once_cb()
399 free (once); in ev_x_once_cb()
404 struct ev_x_once *once = (struct ev_x_once *)malloc (sizeof (struct ev_x_once)); in event_base_once() local
407 if (!once) in event_base_once()
410 once->fd = fd; in event_base_once()
411 once->cb = cb; in event_base_once()
412 once->arg = arg; in event_base_once()
414 ev_once (EV_A_ fd, events & (EV_READ | EV_WRITE), ev_tv_get (tv), ev_x_once_cb, (void *)once); in event_base_once()
H A Dev++.h267 void once (int fd, int events, tstamp timeout, void (*cb)(int, void *), void *arg = 0) throw () in throw()
274 void once (int fd, int events, tstamp timeout, K *object) throw () in once() function
276 once (fd, events, timeout, method_thunk<K, method>, object); in once()
281 void once (int fd, int events, tstamp timeout, K *object) throw () in once() function
283 once (fd, events, timeout, method_thunk<K, &K::operator ()>, object); in once()
295 void once (int fd, int events, tstamp timeout, K *object) throw () in once() function
297 once (fd, events, timeout, method_noargs_thunk<K, method>, object); in once()
309 void once (int fd, int events, tstamp timeout) throw () in once() function
311 once (fd, events, timeout, simpler_func_thunk<cb>); in once()
323 void once (int fd, int events, tstamp timeout) throw () in once() function
[all …]
H A Dev.c4924 void *arg = once->arg; in once_cb()
4926 ev_io_stop (EV_A_ &once->io); in once_cb()
4927 ev_timer_stop (EV_A_ &once->to); in once_cb()
4928 ev_free (once); in once_cb()
4938 once_cb (EV_A_ once, revents | ev_clear_pending (EV_A_ &once->to)); in once_cb_io()
4946 once_cb (EV_A_ once, revents | ev_clear_pending (EV_A_ &once->io)); in once_cb_to()
4954 if (expect_false (!once)) in ev_once()
4960 once->cb = cb; in ev_once()
4961 once->arg = arg; in ev_once()
4963 ev_init (&once->io, once_cb_io); in ev_once()
[all …]
H A Dev.pod964 overhead for the actual polling but can deliver many events at once.
972 once per this interval, on average (as long as the host time resolution is
988 need to poll once per transaction and the I/O collect interval is 0.01,
1271 call C<ev_init> at least once before you call this macro, but you can
1762 readable, but only once. Since it is likely line-buffered, you could
2119 is C<0.>, then it will automatically be stopped once the timeout is
2128 do stuff) the timer will not fire more than once per event loop iteration.
2851 are pending), the idle watchers are being called once per event loop
2948 of lower priority, but only once, using idle watchers to keep the event
2968 useful because they are called once per event loop iteration. For
[all …]
H A Daclocal.m4124 # Only expand once:
7070 # once in the compiler output.
8556 # Yes, that means every name once taken will need to remain here until
9000 # This macro should only be invoked once -- use via AC_REQUIRE.
9098 # For better backward compatibility. To be removed once Automake 1.9.x