Maybe this will helps you, here is my thread-safe subclass of NSMutableArray: http://code.google.com/p/cogeopensource/source/browse/trunk/CoGeOpenSource/CoGeThreadSafeMutableArray.m
Works well for my project. On Mar 8, 2012, at 11:22 AM, Jan E. Schotsman wrote: > Thanks for all the answers. > > 1. I'll read the ThreadSafetySummary. So far I had only read the Threading > section of the Objective C Programming Language. > > 2. Accessing the progress values of the subprojects seems the way to go here. > > 3. Creating a proxy mutable array seems like overkill. Basically this is a > thread-safe subclass of NSMutableArray, correct? > > 4. @Don Quixote: interesting lecture. Now I know what 'lockfree" means. > >> To improve performance share as little data as possible, access it as >> infrequently as possible and if you access it at all, finish what you're >> doing with the shared data as quickie as you can. > > In this case the subprojects shouldn't update their progress values too > often. Only if additional progress is more than 1% for example. > > Jan E. > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/info%40cogevj.hu > > This email sent to i...@cogevj.hu Tamas Nagy ----------------- CoGe VJ Software http://cogevj.hu i...@cogevj.hu _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com