Re: [Qemu-devel] [RFC PATCH 1/5] notifiers: add support for async notifiers handlers

2012-06-05 Thread Gerd Hoffmann
Hi, > +static void notified_complete_cb(AsyncNotifier *notifier, void *opaque) > +{ There is no need to implement this as callback (unlike the notifier _list_ completion callback). Just have a public notifier_complete() function which async notifiers are supposed to call when done. > void no

[Qemu-devel] [RFC PATCH 1/5] notifiers: add support for async notifiers handlers

2012-06-04 Thread Yonit Halperin
This patch defines 2 subtypes of notifiers, sync and async. Both of them can be added to a notifiers list. The patch adds optional complete_cb to the notifiers list. complete_cb is called when all the async notifiers have completed. Signed-off-by: Yonit Halperin --- input.c |2 +- migra