On 08/14/2014 04:08 PM, Iñaki Baz Castillo wrote: > 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)? >
It should return false. > > > Another question: what happens if I call twice to uv_timer_start() for > the same handle? would the second call return error? > > > -- Saúl Ibarra Corretgé bettercallsaghul.com
signature.asc
Description: OpenPGP digital signature
