• 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: Clyde McQueen <email@hidden>
  • Date: Thu, 21 Jun 2001 17:04:29 -0700

On Tuesday, June 12, 2001, at 06:43 PM, 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.

I guess I'll second the question - everything I've read has suggested that a single NSConditionLock is the easiest way to communicate between threads. No DO, no events, etc. I'm going to give it a crack. Am I barking up the wrong tree?

/Clyde


  • Follow-Ups:
    • Re: Simple message passing between threads
      • From: Douglas Davidson <email@hidden>
References: 
 >Simple message passing between threads (From: Richard Schreyer <email@hidden>)

  • Prev by Date: Re: help with FSPathMakeRef
  • Next by Date: Re: cocoa-dev digest, Vol 1 #174 - 15 msgs
  • Previous by thread: Re: Simple message passing between threads
  • Next by thread: Re: Simple message passing between threads
  • Index(es):
    • Date
    • Thread