• 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: Sharing objects between threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Sharing objects between threads (From: "Mike O'Connor" <email@hidden>)

  • Prev by Date: Is there a way to convert image formats with NSImage?
  • Next by Date: Re: Cocoa Java resources?
  • Previous by thread: Re: Sharing objects between threads
  • Next by thread: Cocoa Java resources?
  • Index(es):
    • Date
    • Thread