Re: passing data to threads
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