public void surfaceDestroyed(SurfaceHolder holder) {
boolean done = true;
while (done) {
try {
mThread.join();
done = false;
}catch (InterruptedException e) {
}
}
서피스뷰에서 서핏피부셔질 때 모두 위와같이 하더군요.
아래와 같이 하면 스레드 동기화에 문제가 있나요?
public void surfaceDestroyed(SurfaceHolder holder) {
boolean done = true;
try {
mThread.join();
}catch (InterruptedException e) {
}
초보 눈에는 위나 아래나 같아 보입니다.