I've seen a couple of times the following pattern people use when working with SurfaceView
:
while(true) {
try {
renderThread.join();
break;
} catch (InterruptedException e) {
// retry
}
}
For example, here or here. Why do that? Especially given that nothing is actually interrupting the thread.