call from camera thread concode_field_sep Handler handler concode_elem_sep CameraThread instance concode_elem_sep int openCount concode_elem_sep Object LOCK concode_elem_sep HandlerThread thread concode_elem_sep String TAG concode_field_sep void enqueue concode_elem_sep void incrementAndEnqueue concode_elem_sep void quit concode_elem_sep CameraThread getInstance
void function ( ) { synchronized ( LOCK ) { openCount -= 1 ; if ( openCount == 0 ) { quit ( ) ; } } }