Re: SIGIO and AppKit main loop
Re: SIGIO and AppKit main loop
- Subject: Re: SIGIO and AppKit main loop
- From: j o a r <email@hidden>
- Date: Mon, 29 Mar 2004 15:26:55 +0200
I'm not sure I've understood what this thread is all about, but for run
loop integrated memory / file / network IO, have you checked NSStream
(and / or it's CF counterparts)?
j o a r
On 2004-03-29, at 14.55, Michael Rothwell wrote:
>
Cocoa appears to have no equivalent of glib's "IO Channels," which are
>
really useful, and do not use threads. GIOChannel integrates with the
>
application's main thread and invokes callback functions for registered
>
events, such as ready-to-read, ready-to-write, ready-to-accept, etc. I
>
imagine it integrates the file descriptor in question with a
>
general-purpose select() or poll() done in the main application loop.
>
>
It looks like waitForDataInBackgroundAndNotify spawns a thread every
>
time it is called, which would be very inefficient for reading large
>
amounts of data. In fact, I can't think of any reason to ever use
>
waitForDataInBackgroundAndNotify rather than just starting a single
>
thread and sending notifications back from it while doing multiple I/O
>
operations.
>
>
http://developer.gnome.org/doc/API/2.0/glib/glib-IO-Channels.html#g-io-
>
add-watch
>
>
... where do I file an enhancement request? :D
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.