Re: [libvirt] [libvirt-glib 4/5] mainloop: protect 'handles' and 'timeouts' against concurrent accesses

2012-06-25 Thread Daniel P. Berrange
On Wed, Jun 20, 2012 at 12:29:50PM +0200, Christophe Fergeau wrote: > Timeout and watch deletion is done from an idle callback. However, > we cannot assume that all libvirt event calls (the callbacks passed > to virEventRegisterImpl) will be done from the mainloop thread. It's > thus possible that

[libvirt] [libvirt-glib 4/5] mainloop: protect 'handles' and 'timeouts' against concurrent accesses

2012-06-20 Thread Christophe Fergeau
Timeout and watch deletion is done from an idle callback. However, we cannot assume that all libvirt event calls (the callbacks passed to virEventRegisterImpl) will be done from the mainloop thread. It's thus possible that a libvirt event call will run a thread while one of the idle deletion callba