• 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: Cocoa multithreading in C (terrible idea, isn't it?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa multithreading in C (terrible idea, isn't it?)


  • Subject: Re: Cocoa multithreading in C (terrible idea, isn't it?)
  • From: John Stiles <email@hidden>
  • Date: Wed, 21 Dec 2005 09:35:10 -0800

Christos Papachristou wrote:


The scheme for the library is to handle all events and user requests, as well as drawing routines in the secondary thread. Everything works well when the appllication defines an int alt_main(argc,argv) and the library the real main, which launces the application on a secondary thread and the window system remains on the primary one. Yet this is not very elegant.

I think that, while not the most inelegant, this is probably the best solution for you. Anything less is bending the rules of Cocoa multithreading and may be unstable now or in the future.
Or, alternatively, you might try using "performSelectorOnMainThread" to get on to the main thread when necessary.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Cocoa multithreading in C (terrible idea, isn't it?) (From: Christos Papachristou <email@hidden>)
 >Re: Cocoa multithreading in C (terrible idea, isn't it?) (From: John Stiles <email@hidden>)
 >Re: Cocoa multithreading in C (terrible idea, isn't it?) (From: Shaun Wexler <email@hidden>)
 >Re: Cocoa multithreading in C (terrible idea, isn't it?) (From: Christos Papachristou <email@hidden>)

  • Prev by Date: Re: Height of an NSAttributedString
  • Next by Date: call super class method
  • Previous by thread: Re: Cocoa multithreading in C (terrible idea, isn't it?)
  • Next by thread: Re: Cocoa multithreading in C (terrible idea, isn't it?)
  • Index(es):
    • Date
    • Thread