Lines Matching defs:ThreadLocal

36  * copy of the variable.  {@code ThreadLocal} instances are typically private
52 * private static final ThreadLocal<Integer> threadId =
53 * new ThreadLocal<Integer>() {
66 * variable as long as the thread is alive and the {@code ThreadLocal}
74 public class ThreadLocal<T> {
78 * inheritableThreadLocals). The ThreadLocal objects act as keys,
120 * value other than {@code null}, {@code ThreadLocal} must be
140 public static <S> ThreadLocal<S> withInitial(Supplier<? extends S> supplier) {
148 public ThreadLocal() {
226 * Get the map associated with a ThreadLocal. Overridden in
237 * Create the map associated with a ThreadLocal. Overridden in
271 * An extension of ThreadLocal that obtains its initial value from
274 static final class SuppliedThreadLocal<T> extends ThreadLocal<T> {
291 * outside of the ThreadLocal class. The class is package private to
303 * ThreadLocal object). Note that null keys (i.e. entry.get()
308 static class Entry extends WeakReference<ThreadLocal<?>> {
309 /** The value associated with this ThreadLocal. */
312 Entry(ThreadLocal<?> k, Object v) {
365 ThreadLocalMap(ThreadLocal<?> firstKey, Object firstValue) {
388 ThreadLocal<Object> key = (ThreadLocal<Object>) e.get();
412 private Entry getEntry(ThreadLocal<?> key) {
430 private Entry getEntryAfterMiss(ThreadLocal<?> key, int i, Entry e) {
435 ThreadLocal<?> k = e.get();
453 private void set(ThreadLocal<?> key, Object value) {
467 ThreadLocal<?> k = e.get();
489 private void remove(ThreadLocal<?> key) {
519 private void replaceStaleEntry(ThreadLocal<?> key, Object value,
541 ThreadLocal<?> k = e.get();
603 ThreadLocal<?> k = e.get();
689 ThreadLocal<?> k = e.get();