qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v3 1/7] ui/cocoa: Ensure we have the iothread lo


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v3 1/7] ui/cocoa: Ensure we have the iothread lock when calling into QEMU
Date: Fri, 1 Mar 2019 09:47:09 +0000

On Thu, 28 Feb 2019 at 21:53, G 3 <address@hidden> wrote:
> On Mon, Feb 25, 2019 at 5:24 AM Peter Maydell <address@hidden> wrote:
>> +// Utility function to run specified code block with iothread lock held
>> +typedef void (^CodeBlock)(void);
>
>
> Please don't use blocks. It would lock Mac OS X users into having to use 
> CLang. GCC does not support this non-standard extension.
>
> C function pointers and Objective-C's selectors could work in place of blocks.

Clang is the standard toolchain for this OS. We have such
little developer resource for OSX that I don't think we
can reasonably support two toolchains here. Besides,
we need blocks to use dispatch_async(), which is a much
simpler way to achieve what we're trying to do than
the 10.6 compatible approach.

Similarly, I am not prepared to continue to support 10.6
at this point:
 * 10.6's last release was over seven years ago
 * Apple stopped supporting it four years ago
 * there have been multiple OSX releases since then
 * attempting to maintain support for 10.6 would make the
   code less readable and maintainable for newer OSes
   we do care about
 * we do not have either the user base or the developer
   base on OSX to justify maintaining support for this
   ancient OS version
 * it would be out of line with our overall host OS
   support policy, which targets only the last LTS
   version or two of distros and OSes

I'm sorry if this is inconvenient to you personally, but
I don't think it makes any sense as a project to try to
support this any longer.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]