[android-developers] Re: Do threads cache instance variables?

2010-07-07 Thread Al Sutton
Try using the java keyword volatile in you variable declaration. Al. On Jul 3, 9:49 am, burtoogle burtoo...@gmail.com wrote: Hi, I am starting to develop an Android App and have noticed the following behaviour in my test code (not yet designed the real app): A thread that loops around

[android-developers] Re: Do threads cache instance variables?

2010-07-07 Thread fadden
On Jul 7, 12:20 pm, Al Sutton a...@funkyandroid.com wrote: Try using the java keyword volatile in you variable declaration. Volatile doesn't matter for interpreted Dalvik on a uniprocessor. The interpreter always executes all field access instructions and doesn't do any reordering, so volatile

[android-developers] Re: Do threads cache instance variables?

2010-07-07 Thread burtoogle
Thanks for responding, that's all interesting stuff. Mark -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to