NSMutableData and thread safety
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