• 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: Nathan Day <email@hidden>
  • Date: Thu, 21 Dec 2006 20:22:01 +1030

My NDRunLoopMessenger lets you you do this sort of stuff with less overhead then DO, DO serialises the message arguments which is not needed when it all happening within the same thread.

http://homepage.mac.com/nathan_day/pages/source.xml#ndrunloopmessenger

On 21/12/2006, at 8:07 AM, Dustin Voss wrote:

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

_______________________________________________

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: leenoori <email@hidden>
References: 
 >passing data to threads (From: "William Irving Zumwalt" <email@hidden>)
 >Re: passing data to threads (From: Dustin Voss <email@hidden>)

  • Prev by Date: text selection for pdfview
  • Next by Date: where is SysBeep defined?
  • Previous by thread: Re: passing data to threads
  • Next by thread: Re: passing data to threads
  • Index(es):
    • Date
    • Thread