Hi, according to the doc:

* Rule of thumb: if a handle of type uv_foo_t has a uv_foo_start()
* function, then it's active from the moment that function is called.
* Likewise, uv_foo_stop() deactivates the handle again.
*
*/
UV_EXTERN int uv_is_active(const uv_handle_t* handle);



Ok, what about if I start a timer with uv_timer_start(handle, cb,
1000, 0) and I check uv_is_active(handle) after the timeout callback
is called? will it return 1 (active) or 0 (inactive)?



Another question: what happens if I call twice to uv_timer_start() for
the same handle? would the second call return error?



-- 
Iñaki Baz Castillo
<[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"libuv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to