On Wed, May 10, 2017 at 9:17 AM, Srinivasa Srikanth Podila
<[email protected]> wrote:
> Hi,
>
> I am new to libuv group and using it by reading the documentation.
>
> I am having a couple of queries. Please clarify.
>
> 1) Is it safe to stop the timer in the timer callback itself?
>
> 2) Can we init a new timer in the timer callback? I am facing a SIGSEGV in
> uv_timer_init which does not happen immediately.
> However it happens, when i iterate in loop, it always happens after 10-15
> iterations.
>
>
> Thanks,
> Srikanth

Yes and yes, but you cannot reuse the timer handle, you need to
uv_close() it first (and wait for the callback.)

-- 
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 https://groups.google.com/group/libuv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to