• 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
NSMutableData and thread safety
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMutableData and thread safety


  • Subject: NSMutableData and thread safety
  • From: "Roman Kishchenko" <email@hidden>
  • Date: Thu, 25 Sep 2008 09:50:23 -0400

Hi,
It is said in the documentation that NSMutableData is not thread-safe. So,
its access needs to be synchronized, at least, when multiple contending
threads are using the object of this class. However, is synchronization
necessary when NSMutableData is used by multiple threads NOT concurrently,
i.e. first one thread adds some data to it, the the other, etc?

Also, is it ok to pass the object of this class as an argument to
performSelector:onThread:...?

Thanks,
Roman Kishchenko
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: NSMutableData and thread safety
      • From: Ken Thomases <email@hidden>
  • Prev by Date: [MEET] Aachen CocoaHeads TODAY (September 25, 2008)
  • Next by Date: Re: NSMutableData and thread safety
  • Previous by thread: [MEET] Aachen CocoaHeads TODAY (September 25, 2008)
  • Next by thread: Re: NSMutableData and thread safety
  • Index(es):
    • Date
    • Thread