[android-developers] Re: Some questions about GLThread in ApiDemos

2009-04-07 Thread samurai00...@gmail.com
Thanks for your answers. I have a new doubt. Why does the synchronized block in guardedRun finish() before the GL rendering? I think some 'dangerous' scenarios could happen. For example: 1. 'GLThread' thread runs up to 'if (changed)' statement, with changed == 'true'; then 'GLThread' leaves

[android-developers] Re: Some questions about GLThread in ApiDemos

2009-04-03 Thread Streets Of Boston
for 1) Within the if (needToWait()) stament block, there may be more code than just this while(needToWait()) loop. But this is of little use if this if statement has no 'else' clause. If there is indeed no else clause, you could remove the 'if' statement all together. Maybe this is just a