Re: NSImage drawInRect deadlock
Re: NSImage drawInRect deadlock
- Subject: Re: NSImage drawInRect deadlock
- From: Andrew Keller <email@hidden>
- Date: Tue, 09 Aug 2016 19:38:35 -0400
Am 09.08.2016 um 3:59 nachm. schrieb Kyle Sluder <email@hidden>:
> On Tue, Aug 9, 2016, at 07:38 AM, Andrew Keller wrote:
>
>> I was under the impression from the docs that macOS
>> handles the thread pool “automatically”.
>
> Mike Ash did a good job explaining why this isn’t as “automatic” as one
> might think:
> https://www.mikeash.com/pyblog/friday-qa-2009-09-25-gcd-practicum.html <https://www.mikeash.com/pyblog/friday-qa-2009-09-25-gcd-practicum.html>
Wow. That was incredibly eye opening. I’m seeing the exact same symptoms he’s describing — the deadlock is just the sugar on top.
I’m going to play with some of his concepts and see what happens. I wonder if the deadlock can be worked around by using the image scaling approach he uses in his example.
Thanks,
- Andrew
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden