return the value created by the construct method . returns null if either the constructing thread or the current thread was interrupted before a value was produced . concode_field_sep Thread thread concode_elem_sep Object value concode_elem_sep ThreadVar threadVar concode_field_sep Object getValue concode_elem_sep void setValue concode_elem_sep void clear concode_elem_sep void interrupt concode_elem_sep void start concode_elem_sep void finished concode_elem_sep Object construct
Object function ( ) { while ( true ) { Thread loc0 = threadVar . get ( ) ; if ( loc0 == null ) { return getValue ( ) ; } try { loc0 . join ( ) ; } catch ( InterruptedException loc1 ) { Thread . currentThread ( ) . interrupt ( ) ; return null ; } } }