Home
last modified time | relevance | path

Searched refs:repeat (Results 1 – 9 of 9) sorted by relevance

/libuv/src/
H A Dtimer.c62 handle->repeat = 0; in uv_timer_init()
71 uint64_t repeat) { in uv_timer_start() argument
85 handle->repeat = repeat; in uv_timer_start()
117 if (handle->repeat) { in uv_timer_again()
119 uv_timer_start(handle, handle->timer_cb, handle->repeat, handle->repeat); in uv_timer_again()
126 void uv_timer_set_repeat(uv_timer_t* handle, uint64_t repeat) { in uv_timer_set_repeat() argument
127 handle->repeat = repeat; in uv_timer_set_repeat()
132 return handle->repeat; in uv_timer_get_repeat()
/libuv/docs/src/
H A Dtimer.rst37 …unction:: int uv_timer_start(uv_timer_t* handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat)
39 Start the timer. `timeout` and `repeat` are in milliseconds.
42 If `repeat` is non-zero, the callback fires first after `timeout`
43 milliseconds and then repeatedly after `repeat` milliseconds.
56 Stop the timer, and if it is repeating restart it using the repeat value
60 .. c:function:: void uv_timer_set_repeat(uv_timer_t* handle, uint64_t repeat)
62 Set the repeat interval value in milliseconds. The timer will be scheduled
73 If the repeat value is set from a timer callback it does not immediately take effect.
75 then the old repeat value will have been used to schedule the next timeout.
79 Get the timer repeat value.
/libuv/src/win/
H A Dcore.c432 int repeat; in uv__poll_wine() local
448 for (repeat = 0; ; repeat++) { in uv__poll_wine()
508 timeout += repeat ? (1 << (repeat - 1)) : 0; in uv__poll_wine()
524 int repeat; in uv__poll() local
541 for (repeat = 0; ; repeat++) { in uv__poll()
610 timeout += repeat ? (1 << (repeat - 1)) : 0; in uv__poll()
/libuv/test/
H A Dtest-timer.c118 uv_timer_t repeat, never; in TEST_IMPL() local
135 r = uv_timer_init(uv_default_loop(), &repeat); in TEST_IMPL()
137 r = uv_timer_start(&repeat, repeat_cb, 100, 100); in TEST_IMPL()
/libuv/docs/src/guide/
H A Dutilities.rst16 Simple use is to init a watcher and start it with a ``timeout``, and optional ``repeat``.
27 of ``uv_timer_start``, then repeats every 2 seconds (the ``repeat``). Use:
35 The repeat interval can be modified at any time with::
37 uv_timer_set_repeat(uv_timer_t *timer, int64_t repeat);
45 the old repeat interval will be used once more before the timer switches to
53 and then starting it with both initial ``timeout`` and ``repeat`` set to the
54 old ``repeat`` value. If the timer hasn't been started it fails (error code
/libuv/include/uv/
H A Dunix.h336 uint64_t repeat; \
H A Dwin.h559 uint64_t repeat; \
/libuv/include/
H A Duv.h962 uint64_t repeat);
965 UV_EXTERN void uv_timer_set_repeat(uv_timer_t* handle, uint64_t repeat);
/libuv/
H A DChangeLog4128 * doc: clarify repeat timer behavior (Eli Skeggs)
6345 * unix: make uv_timer_init() initialize repeat (Brian Mazza)

Completed in 37 milliseconds