]> git.ipfire.org Git - thirdparty/libvirt.git/commit
events: Propose a separate lock for event queue
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 6 Oct 2011 16:44:13 +0000 (18:44 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 13 Oct 2011 08:01:07 +0000 (10:01 +0200)
commitd81eee40c2f28c0d8d9b8b52ae71a5b3c45cacdf
tree8c0f401301e40dcd946fdbe50421b0461497371d
parent2050b61dec5b304109a1f0994ac1e681eeeff350
events: Propose a separate lock for event queue

Currently, push & pop from event queue (both server & client side)
rely on lock from higher levels, e.g. on driver lock (qemu),
private_data (remote), ...; This alone is not sufficient as not
every function that interacts with this queue can/does lock,
esp. in client where we have a different approach, "passing
the buck".

Therefore we need a separate lock just to protect event queue.

For more info see:
https://bugzilla.redhat.com/show_bug.cgi?id=743817
src/conf/domain_event.c
src/conf/domain_event.h