[libvirt] [PATCH][libvirt-glib] glib-events: Allow zero timeouts for timer

2012-06-01 Thread Michal Privoznik
In libvirt, it's perfectly possible and widely used to have disabled timers (timeout=-1) and fire them up 'randomly' with timeout=0. However, with current mapping into glib mainloop it's not possible and causing troubles. --- libvirt-glib/libvirt-glib-event.c |2 +- 1 files changed, 1

Re: [libvirt] [PATCH][libvirt-glib] glib-events: Allow zero timeouts for timer

2012-06-01 Thread Christophe Fergeau
On Fri, Jun 01, 2012 at 01:41:54PM +0200, Michal Privoznik wrote: In libvirt, it's perfectly possible and widely used to have disabled timers (timeout=-1) and fire them up 'randomly' with timeout=0. However, with current mapping into glib mainloop it's not possible and causing troubles. ACK

Re: [libvirt] [PATCH][libvirt-glib] glib-events: Allow zero timeouts for timer

2012-06-01 Thread Michal Privoznik
On 01.06.2012 15:11, Christophe Fergeau wrote: On Fri, Jun 01, 2012 at 01:41:54PM +0200, Michal Privoznik wrote: In libvirt, it's perfectly possible and widely used to have disabled timers (timeout=-1) and fire them up 'randomly' with timeout=0. However, with current mapping into glib mainloop

[libvirt] [PATCH][libvirt-glib] glib-events: Allow zero timeouts for timer

2012-05-22 Thread Michal Privoznik
In libvirt, it's perfectly possible and widely used to have disabled timers (timeout=-1) and fire them up 'randomly' with timeout=0. However, with current mapping into glib mainloop it's not possible and causing troubles. --- libvirt-glib/libvirt-glib-event.c |2 +- 1 files changed, 1

Re: [libvirt] [PATCH][libvirt-glib] glib-events: Allow zero timeouts for timer

2012-05-22 Thread Christophe Fergeau
On Tue, May 22, 2012 at 05:37:25PM +0200, Michal Privoznik wrote: In libvirt, it's perfectly possible and widely used to have disabled timers (timeout=-1) and fire them up 'randomly' with timeout=0. However, with current mapping into glib mainloop it's not possible and causing troubles. The