AnyEvent driver for Prima

Dmitry Karasik dmitry at karasik.eu.org
Wed Dec 14 15:05:40 CET 2016


> > This for sure won't happen for x11 backend, but for win32 backend I 
> > cannot
> > answer that. The timer is implemented using standard SetTimer() 
> > function, which
> > might or might not send more events in the system message queue. I just 
> > wrote a
> > script to test this on my Windows 7, all seems ok, but I cannot give 
> > you a
> > guarantee.
> 
> In that case, the driver will have to make sure not to call the timer 
> callback twice even if win32 happens to do that.  Corion: can you fix 
> that somehow in the code?  It's not completely trivial to do that when 
> the AnyEvent timer is periodic.  Also, remove the my declaration of the 
> $g variable if you no longer use that.

I believe one just says $self->destroy in the onTick handler, if you want exactly one event

-- 
Sincerely,
	Dmitry Karasik




More information about the anyevent mailing list