Re: [libvirt] [PATCH 3/8] Add APIs to allow management of callbacks purely with virDomainEventState

2011-12-14 Thread Eric Blake
On 12/13/2011 05:38 PM, Daniel P. Berrange wrote: > From: "Daniel P. Berrange" > > While virDomainEventState has APIs for managing removal of callbacks, > while locked, adding callbacks in the first place requires direct > access to the virDomainEventCallbackList structure. This is not > threadsa

[libvirt] [PATCH 3/8] Add APIs to allow management of callbacks purely with virDomainEventState

2011-12-13 Thread Daniel P. Berrange
From: "Daniel P. Berrange" While virDomainEventState has APIs for managing removal of callbacks, while locked, adding callbacks in the first place requires direct access to the virDomainEventCallbackList structure. This is not threadsafe since it is bypassing the virDomainEventState locks * src/