"Better pattern"> The Portland pattern Repository classifies double
locking as an "anti-pattern", not a pattern. The Wikipedia page on it
(http://en.wikipedia.org/wiki/Double-checked_locking) gives a pretty
good sense of why, though when they talk of pertinent java bugs, they
are, of course, referring to the Sun JRE.

On Jun 3, 7:51 am, Mark Murphy <[email protected]> wrote:
> On Fri, Jun 3, 2011 at 10:38 AM, Chris <[email protected]> wrote:
> > While thread-safety is on your mind, you should know that double-checked
> > locking doesn't always fix that problem either.
>
> It did according to my sources. Got a better pattern?
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android 3.0 Programming Books:http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to