/libuv/src/unix/ |
H A D | tcp.c | 470 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 D | loop-watcher.c | 68 UV_LOOP_WATCHER_DEFINE(idle, IDLE)
|
H A D | darwin.c | 228 cpu_info->cpu_times.idle = (uint64_t)(info[i].cpu_ticks[2]) * multiplier; in uv_cpu_info()
|
H A D | freebsd.c | 263 cpu_info->cpu_times.idle = (uint64_t)(cp_times[CP_IDLE+cur]) * multiplier; in uv_cpu_info()
|
H A D | openbsd.c | 228 cpu_info->cpu_times.idle = (uint64_t)(info[CP_IDLE]) * multiplier; in uv_cpu_info()
|
H A D | netbsd.c | 233 cpu_info->cpu_times.idle = (uint64_t)(cp_times[CP_IDLE+cur]) * multiplier; in uv_cpu_info()
|
H A D | sunos.c | 728 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 D | ibmi.c | 307 cpu_info->cpu_times.idle = 0; in uv_cpu_info()
|
H A D | aix.c | 1104 cpu_info->cpu_times.idle = ps_cpus[idx].idle; in uv_cpu_info()
|
H A D | linux.c | 1750 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 D | idle.rst | 11 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 D | metrics.rst | 53 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 D | api.rst | 17 idle
|
H A D | design.rst | 76 #. 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 D | test-tcp-oob.c | 34 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 D | test-poll-oob.c | 37 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 D | test-handle-fileno.c | 55 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 D | test-queue-foreach-delete.c | 122 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 D | test-platform-output.c | 146 (unsigned long long) cpus[i].cpu_times.idle); in TEST_IMPL()
|
/libuv/docs/code/ |
H A D | CMakeLists.txt | 15 idle-basic 16 idle-compute
|
/libuv/docs/src/guide/ |
H A D | utilities.rst | 102 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 D | basics.rst | 212 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 D | eventloops.rst | 31 runs pending timer, idle and prepare callbacks, and invokes any pending I/O
|
/libuv/src/win/ |
H A D | loop-watcher.c | 122 UV_LOOP_WATCHER_DEFINE(idle, IDLE)
|
/libuv/include/ |
H A D | uv.h | 168 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
|