Re: [libvirt] [PATCH 2/8] Return count of callbacks when registering callbacks

2011-12-14 Thread Eric Blake
On 12/13/2011 05:38 PM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com When registering a callback for a particular event some callers need to know how many callbacks already exist for that event. While it is possible to ask for a count, this is not free from race

[libvirt] [PATCH 2/8] Return count of callbacks when registering callbacks

2011-12-13 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com When registering a callback for a particular event some callers need to know how many callbacks already exist for that event. While it is possible to ask for a count, this is not free from race conditions when threaded. Thus the API for registering