void function ( ) { if ( ! isOnMainThread ( ) ) { throw new IllegalStateException ( "srini_string" + Thread . currentThread ( ) ) ; } }
checks that it is called from the main thread and fails if it is called from another thread . concode_field_sep Thread mThread concode_field_sep void checkNotMainThread concode_elem_sep ThreadChecker newSingleThreadChecker concode_elem_sep boolean isOnMainThread concode_elem_sep ThreadChecker newLazySingleThreadChecker concode_elem_sep void checkThread concode_elem_sep void checkThread concode_elem_sep ThreadChecker newCurrentThreadChecker