• 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: Accessing array in thread safe way
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing array in thread safe way


  • Subject: Re: Accessing array in thread safe way
  • From: Per Bull Holmen <email@hidden>
  • Date: Wed, 07 Mar 2012 14:33:19 +0100

Den 23:48 6. mars 2012 skrev Conrad Shultz
<email@hidden> følgende:

> Personally, I try to the maximum extent possible to make properties be
> of immutable types for exactly this reason.  It allows you to centralize
> management of locking/synchronization thus wipe out a whole category of
> potential bugs.  It also allows for, e.g., easier KVO and generally
> simpler code.

I agree. While making data graphs immutable is no guarantee of thread
safety, it is still a good practice which (usually) can make it easier
to achieve thread safety, performance, maintainability etc...

Per

_______________________________________________

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: Accessing array in thread safe way
      • From: Per Bull Holmen <email@hidden>
References: 
 >Accessing array in thread safe way (From: "Jan E. Schotsman" <email@hidden>)
 >Re: Accessing array in thread safe way (From: Conrad Shultz <email@hidden>)

  • Prev by Date: Re: Finding object array index when iterating through array
  • Next by Date: Re: Accessing array in thread safe way
  • Previous by thread: Re: Accessing array in thread safe way
  • Next by thread: Re: Accessing array in thread safe way
  • Index(es):
    • Date
    • Thread