Lines Matching refs:ThreadLocal
34 * copy of the variable. <tt>ThreadLocal</tt> instances are typically private
50 * private static final ThreadLocal<Integer> threadId =
51 * new ThreadLocal<Integer>() {
64 * variable as long as the thread is alive and the <tt>ThreadLocal</tt>
72 public class ThreadLocal<T> {
76 * inheritableThreadLocals). The ThreadLocal objects act as keys,
118 * value other than <tt>null</tt>, <tt>ThreadLocal</tt> must be
131 public ThreadLocal() {
206 * Get the map associated with a ThreadLocal. Overridden in
217 * Create the map associated with a ThreadLocal. Overridden in
254 * outside of the ThreadLocal class. The class is package private to
266 * ThreadLocal object). Note that null keys (i.e. entry.get()
271 static class Entry extends WeakReference<ThreadLocal> {
272 /** The value associated with this ThreadLocal. */
275 Entry(ThreadLocal k, Object v) {
328 ThreadLocalMap(ThreadLocal firstKey, Object firstValue) {
351 ThreadLocal key = e.get();
375 private Entry getEntry(ThreadLocal key) {
393 private Entry getEntryAfterMiss(ThreadLocal key, int i, Entry e) {
398 ThreadLocal k = e.get();
416 private void set(ThreadLocal key, Object value) {
430 ThreadLocal k = e.get();
452 private void remove(ThreadLocal key) {
482 private void replaceStaleEntry(ThreadLocal key, Object value,
504 ThreadLocal k = e.get();
566 ThreadLocal k = e.get();
653 ThreadLocal k = e.get();