Re: Sharing objects between threads
Re: Sharing objects between threads
- Subject: Re: Sharing objects between threads
- From: Chris Hanson <email@hidden>
- Date: Fri, 25 Jun 2004 10:53:46 -0700
On Jun 24, 2004, at 9:15 PM, Mike O'Connor wrote:
What's the proper way to share several objects between threads? Can't
I just move the id across somehow and use it, since it's all in the
same app, without it changing into a distant object?
Yes, absolutely. However, you need to be sure that all of your access
to such shared objects is properly synchronized (using locks or, in
Panther, @synchronized).
-- Chris
--
Chris Hanson <email@hidden>
http://www.livejournal.com/users/chanson/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.