ok thanks.

2014-08-14 17:16 GMT+02:00 Saúl Ibarra Corretgé <[email protected]>:
> 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
>
>



-- 
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