called by a worker thread to retrieve the next layout task . this will block until a new task is available . this method will return null if the thread is interrupted while waiting . concode_field_sep LinkedList list concode_elem_sep LayoutQueue defaultQueue concode_field_sep void setDefaultQueue concode_elem_sep LayoutQueue getDefaultQueue concode_elem_sep void addTask
Runnable function ( ) { synchronized ( list ) { while ( list . size ( ) == 0 ) { try { list . wait ( ) ; } catch ( InterruptedException loc0 ) { return null ; } } return ( Runnable ) list . removeFirst ( ) ; } }