• 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: Simple message passing between threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple message passing between threads


  • Subject: Re: Simple message passing between threads
  • From: Gareth White <email@hidden>
  • Date: Thu, 14 Jun 2001 02:16:48 +0800

At 6:43 PM -0700 12/6/2001, Richard Schreyer wrote:
>I have a secondary thread I use to do calculations, and I need to send a
>message to the main thread when the second thread completes it's job,
>and terminates.
>
>Distributed Objects seems like a little much for this single use. There
>have been several times has come up previously on the list, but looking
>over those has still left me clueless how to do this.

The most elegant way I've found to do this is to use OFMessageQueue from
the OmniFoundation framework. See this thread for more info:
http://www.omnigroup.com/mailman/archive/macosx-dev/2001-February/009674.html.
Hope that helps,
Gareth


References: 
 >Simple message passing between threads (From: Richard Schreyer <email@hidden>)

  • Prev by Date: Re: How to get selected text in current application ?
  • Next by Date: NSTextFieldCell vertical centering?
  • Previous by thread: Re: Simple message passing between threads
  • Next by thread: Re: Simple message passing between threads
  • Index(es):
    • Date
    • Thread