|
From: | Avi Kivity |
Subject: | Re: [Qemu-devel] [PATCH 1/7] Add support for generic notifier lists |
Date: | Thu, 11 Mar 2010 17:19:40 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Thunderbird/3.0.3 |
On 03/11/2010 04:54 PM, Anthony Liguori wrote:
I take it your not opposed to converting QEMUBH to be a QEMUNotifier? If so, I'm happy to do it.It's unclear to me why you've invented a new thing in the first place.This style of callback has a number of advantages: - It provides better type safety since - It's a more compact representation- It maps to a function object (functor) which is a pretty common pattern in most high level languages
- The name isn't an eyesore -- error compiling committee.c: too many arguments to function
[Prev in Thread] | Current Thread | [Next in Thread] |