• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiple Threaded Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple Threaded Windows


  • Subject: Re: Multiple Threaded Windows
  • From: Chris Ridd <email@hidden>
  • Date: Tue, 07 Oct 2003 20:28:53 +0100

On 7/10/03 8:02 pm, M. Uli Kusterer <email@hidden> wrote:

>> Because these are NSWindows, could main be colliding with the
>> threads' calls, thus leading to a situation in which two threads
>> (the render thread and main) are issuing commands? I don't do any
>> drawing except from the threads, so each thread is rendering only
>> into its own context. Something is still corrupting things enough to
>> hang the hardware. Do I need to do further overloading of NSView to
>> make certain that the main thread is never trying to do any drawing
>> within the view?
>
> I'm no threads guru, but from what I know, AppKit is *not*
> thread-safe. The only thing supported by Apple with regard to GUI so
> far is manipulating it from the main thread. (Apparently, Apple have
> long-term plans to make both Carbon and Cocoa thread-safe, but that
> may be in MacOS 11...)

According to:

<file:///Developer/Documentation/Cocoa/TasksAndConcepts/ProgrammingTopics/Mu
ltithreading/Tasks/appkit.html>

"It is commonly believed that "the Foundation is thread-safe and the
Application Kit is not." However, this statement is a gross generalization
and can be misleading. Each has thread-safe and thread-unsafe portions."

:-)

Cheers,

Chris
_______________________________________________
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.

References: 
 >Re: Multiple Threaded Windows (From: "M. Uli Kusterer" <email@hidden>)

  • Prev by Date: Re: Multiple Threaded Windows
  • Next by Date: Window Loses Mouse Moved Events After Selecting From Menu
  • Previous by thread: Re: Multiple Threaded Windows
  • Next by thread: Re: Multiple Threaded Windows
  • Index(es):
    • Date
    • Thread