creates a new readersentry instance for the current thread and stores the associated state in the queue of states . concode_field_sep long localreaderState concode_elem_sep State st concode_elem_sep int READS_ON_LEFT concode_elem_sep AtomicReference<State[]> readersStateArray concode_elem_sep TreeSet<E> rightTree concode_elem_sep long serialVersionUID concode_elem_sep TreeSet<E> leftTree concode_elem_sep int leftRight concode_elem_sep ThreadLocal<ReadersEntry> entry concode_elem_sep int READS_ON_RIGHT concode_elem_sep long[] writeStateInitial concode_elem_sep State[] dummyArray concode_elem_sep long readerState concode_elem_sep int STATE_NOT_READING concode_elem_sep int writerLeftRight concode_elem_sep ConcurrentLinkedQueue<State> readersStateQ concode_elem_sep State[] writeState concode_field_sep boolean add concode_elem_sep boolean contains concode_elem_sep int scanInitialReaders concode_elem_sep void scanReaders concode_elem_sep State[] rebuildArraysIfNeeded concode_elem_sep void finalize concode_elem_sep void removeState concode_elem_sep boolean remove
ReadersEntry function ( ) { final ReadersEntry loc0 = new ReadersEntry ( STATE_NOT_READING ) ; entry . set ( loc0 ) ; readersStateQ . add ( loc0 . st ) ; readersStateArray . set ( null ) ; return loc0 ; }