• 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: passing data to threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passing data to threads


  • Subject: Re: passing data to threads
  • From: Dustin Voss <email@hidden>
  • Date: Wed, 20 Dec 2006 13:37:14 -0800

On 19 Dec 2006, at 8:39 PM, William Irving Zumwalt wrote:

I'm trying to implement threads and not sure how to pass the *config object
into a newly created thread. I'm using an example from the book Cocoa
Programming.


Anyone have ideas?

The InterThreadMessaging library is a good way to pass information to and from threads. Otherwise, people usually use Distributed Objects, producer/consumer queues, or some system involving globals and locks.


Here are some links with more info:
http://cocoadev.com/index.pl?InterThreadMessaging
http://cocoadev.com/index.pl? DistributedObjectsForInterThreadCommunication
http://cocoadev.com/index.pl?DistributedObjectsSampleCode
http://cocoadev.com/index.pl?ProducersAndConsumerModel
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: passing data to threads
      • From: Nathan Day <email@hidden>
References: 
 >passing data to threads (From: "William Irving Zumwalt" <email@hidden>)

  • Prev by Date: Re: Cocoa-dev Digest, Vol 3, Issue 1474
  • Next by Date: NSHost and host aliases
  • Previous by thread: Re: passing data to threads
  • Next by thread: Re: passing data to threads
  • Index(es):
    • Date
    • Thread