Re: Multiple Threaded Windows
Re: Multiple Threaded Windows
- Subject: Re: Multiple Threaded Windows
- From: Cameron Hayne <email@hidden>
- Date: Fri, 24 Oct 2003 00:15:48 -0400
On 10/10/03 9:55 AM, "Chris Scharver" <email@hidden> wrote:
>
Some platforms running this code use
>
fork() rather than threads, so those semantics are still kept in place
>
whether using multiple threads or multiple processes. With the
>
library's other windowing environments, drawing surfaces live safely on
>
the child threads without interference from the main process. Trying to
>
discover the required steps to implement similar behavior using Cocoa
>
is a challenge.
Sorry, I'm rather late coming in on this discussion.
But if you have other platforms that fork a new process for each window,
then that would likely be the best way to go for OS X as well. It is far
simpler to deal with separate processes than a multi-threaded program. And
if your existing framework is set up to deal with windows in separate
processes then it must already deal with the issues of cross-window
interaction somehow.
>
I'll try to extract all the code into a simple example so that I can
>
get a bug report filed on the kernel panic.
It would be nice if you posted this example code somewhere where we could
see it, as well as submitting it to Apple.
And, for future, I would suggest that it would be best to write the simple
example code *first* as a way of understanding the platform before going on
to try to implement a big project.
--
Cameron Hayne (email@hidden)
Hayne of Tintagel
_______________________________________________
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.