Home
last modified time | relevance | path

Searched refs:idle (Results 1 – 25 of 32) sorted by relevance

12

/libuv/src/unix/
H A Dtcp.c470 int idle; in uv__tcp_keepalive() local
474 (void) &idle; in uv__tcp_keepalive()
510 idle = delay; in uv__tcp_keepalive()
512 if (idle < 10) in uv__tcp_keepalive()
513 idle = 10; in uv__tcp_keepalive()
515 if (idle > 10*24*60*60) in uv__tcp_keepalive()
516 idle = 10*24*60*60; in uv__tcp_keepalive()
523 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle))) in uv__tcp_keepalive()
551 idle = delay; in uv__tcp_keepalive()
554 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle))) in uv__tcp_keepalive()
[all …]
H A Dloop-watcher.c68 UV_LOOP_WATCHER_DEFINE(idle, IDLE)
H A Ddarwin.c228 cpu_info->cpu_times.idle = (uint64_t)(info[i].cpu_ticks[2]) * multiplier; in uv_cpu_info()
H A Dfreebsd.c263 cpu_info->cpu_times.idle = (uint64_t)(cp_times[CP_IDLE+cur]) * multiplier; in uv_cpu_info()
H A Dopenbsd.c228 cpu_info->cpu_times.idle = (uint64_t)(info[CP_IDLE]) * multiplier; in uv_cpu_info()
H A Dnetbsd.c233 cpu_info->cpu_times.idle = (uint64_t)(cp_times[CP_IDLE+cur]) * multiplier; in uv_cpu_info()
H A Dsunos.c728 cpu_info->cpu_times.idle = 0; in uv_cpu_info()
741 cpu_info->cpu_times.idle = knp->value.ui64; in uv_cpu_info()
H A Dibmi.c307 cpu_info->cpu_times.idle = 0; in uv_cpu_info()
H A Daix.c1104 cpu_info->cpu_times.idle = ps_cpus[idx].idle; in uv_cpu_info()
H A Dlinux.c1750 unsigned long long freq, user, nice, sys, idle, irq; in uv_cpu_info() member
1795 &cpu, &t.user, &t.nice, &t.sys, &t.idle, &skip, &t.irq); in uv_cpu_info()
1916 .idle = 10 * c->idle, in uv_cpu_info()
/libuv/docs/src/
H A Didle.rst11 The notable difference with prepare handles is that when there are active idle handles,
15 Despite the name, idle handles will get their callbacks called on every loop iteration,
16 not when the loop is actually "idle".
42 .. c:function:: int uv_idle_init(uv_loop_t* loop, uv_idle_t* idle)
48 .. c:function:: int uv_idle_start(uv_idle_t* idle, uv_idle_cb cb)
55 .. c:function:: int uv_idle_stop(uv_idle_t* idle)
H A Dmetrics.rst53 Retrieve the amount of time the event loop has been idle in the kernel's
56 The return value is the accumulated time spent idle in the kernel's event
58 collect the idle time.
61 The event loop will not begin accumulating the event provider's idle
H A Dapi.rst17 idle
H A Ddesign.rst76 #. Idle handle callbacks are called. Despite the unfortunate name, idle handles are run on every
88 * If there are any idle handles active, the timeout is 0.
/libuv/test/
H A Dtest-tcp-oob.c34 static uv_idle_t idle; variable
47 static void idle_cb(uv_idle_t* idle) { in idle_cb() argument
54 uv_close((uv_handle_t*) idle, NULL); in idle_cb()
66 ASSERT_OK(uv_idle_start(&idle, idle_cb)); in read_cb()
123 ASSERT_OK(uv_idle_init(loop, &idle)); in TEST_IMPL()
H A Dtest-poll-oob.c37 static uv_idle_t idle; variable
55 static void idle_cb(uv_idle_t* idle) { in idle_cb() argument
65 uv_close((uv_handle_t*) idle, NULL); in idle_cb()
163 ASSERT_OK(uv_idle_start(&idle, idle_cb)); in connection_cb()
178 ASSERT_OK(uv_idle_init(loop, &idle)); in TEST_IMPL()
H A Dtest-handle-fileno.c55 uv_idle_t idle; in TEST_IMPL() local
61 r = uv_idle_init(loop, &idle); in TEST_IMPL()
63 r = uv_fileno((uv_handle_t*) &idle, &fd); in TEST_IMPL()
65 uv_close((uv_handle_t*) &idle, NULL); in TEST_IMPL()
H A Dtest-queue-foreach-delete.c122 DEFINE_GLOBALS_AND_CBS(idle, uv_idle_t* handle)
176 INIT_AND_START(idle, loop); in TEST_IMPL()
194 END_ASSERTS(idle); in TEST_IMPL()
H A Dtest-platform-output.c146 (unsigned long long) cpus[i].cpu_times.idle); in TEST_IMPL()
/libuv/docs/code/
H A DCMakeLists.txt15 idle-basic
16 idle-compute
/libuv/docs/src/guide/
H A Dutilities.rst102 The callbacks of idle handles are invoked once per event loop. The idle
106 CPU time to perform SETI calculations :) An idle watcher is also useful in
111 idle watcher to keep the UI operational.
113 .. rubric:: idle-compute/main.c
114 .. literalinclude:: ../../code/idle-compute/main.c
120 Here we initialize the idle watcher and queue it up along with the actual
124 keep calling the idle callback again.
126 .. rubric:: idle-compute/main.c
127 .. literalinclude:: ../../code/idle-compute/main.c
H A Dbasics.rst212 Here is an example of using an idle handle. The callback is called once on
213 every turn of the event loop. A use case for idle handles is discussed in
214 :doc:`utilities`. Let us use an idle watcher to look at the watcher life cycle
215 and see how ``uv_run()`` will now block because a watcher is present. The idle
219 .. rubric:: idle-basic/main.c
220 .. literalinclude:: ../../code/idle-basic/main.c
H A Deventloops.rst31 runs pending timer, idle and prepare callbacks, and invokes any pending I/O
/libuv/src/win/
H A Dloop-watcher.c122 UV_LOOP_WATCHER_DEFINE(idle, IDLE)
/libuv/include/
H A Duv.h168 XX(IDLE, idle) \
932 UV_EXTERN int uv_idle_init(uv_loop_t*, uv_idle_t* idle);
933 UV_EXTERN int uv_idle_start(uv_idle_t* idle, uv_idle_cb cb);
934 UV_EXTERN int uv_idle_stop(uv_idle_t* idle);
1189 uint64_t idle; /* milliseconds */ member

Completed in 38 milliseconds

12