int function ( VariableLinkedBlockingQueue < W > arg0 , Collection < W > arg1 , int arg2 ) { int loc0 = 0 ; while ( loc0 < arg2 ) { W loc1 = arg0 . poll ( ) ; if ( loc1 == null ) break ; arg1 . add ( loc1 ) ; ++ loc0 ; } return loc0 ; }
private implementation of drainto not implemented for linkedlist < w > s . concode_field_sep int MAX_QUEUE_LENGTH concode_elem_sep SetQueue<K> ready concode_elem_sep Set<K> unlimited concode_elem_sep Map<K,VariableLinkedBlockingQueue<W>> pool concode_elem_sep Set<K> inProgress concode_field_sep void unregisterAllKeys concode_elem_sep void inProgressToReady concode_elem_sep void registerKey concode_elem_sep boolean moreWorkItems concode_elem_sep boolean isReady concode_elem_sep void unregisterKey concode_elem_sep void inProgressToDormant concode_elem_sep K readyToInProgress concode_elem_sep void unlimit concode_elem_sep boolean isDormant concode_elem_sep void limit concode_elem_sep boolean addWorkItem concode_elem_sep boolean isRegistered concode_elem_sep boolean finishWorkBlock concode_elem_sep void setCapacities concode_elem_sep K nextWorkBlock concode_elem_sep boolean isInProgress concode_elem_sep void dormantToReady