Re: Carbon -> Cocoa
Re: Carbon -> Cocoa
- Subject: Re: Carbon -> Cocoa
- From: Uli Kusterer <email@hidden>
- Date: Thu, 23 Aug 2018 05:30:33 +0200
On 22. Aug 2018, at 19:40, Alastair Houghton <email@hidden>
wrote:
> Are they? kqueue() supports monitoring of fds, Mach ports and timers, so
> there’s really no reason that CFRunLoop would have to spawn a background
> thread just to monitor some file descriptors. As far as I can tell, the
> current CFRunLoop implementation is built on top of GCD, which sadly we don’t
> have the source code for; I don’t have time to reverse engineer it right now
> to see whether or not GCD does in fact spawn background thread(s) for this or
> not, but I see no particular reason it should have to.
I recall hearing from someone at Apple that they basically ported GCD to Linux
for the Swift Linux release ... have you looked whether that code might give
any clues about what may be happening on macOS?
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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