returns an ngsession from the pool , or creates one if necessary concode_field_sep int poolSize concode_elem_sep int poolEntries concode_elem_sep NGServer server concode_elem_sep NGSession[] pool concode_elem_sep boolean done concode_elem_sep Object lock concode_field_sep void give concode_elem_sep void shutdown
NGSession function ( ) { NGSession loc0 ; synchronized ( lock ) { if ( poolEntries == 0 ) { loc0 = new NGSession ( this , server ) ; loc0 . start ( ) ; } else { -- poolEntries ; loc0 = pool [ poolEntries ] ; } } return ( loc0 ) ; }