59 * @return the child thread's initial value
60 */
61 protected T childValue(T parentValue) {
62 return parentValue;
63 }
64
65 /**
66 * Get the map associated with a ThreadLocal.
67 *
68 * @param t the current thread
69 */
70 ThreadLocalMap getMap(Thread t) {
71 return t.inheritableThreadLocals;
72 }
73
74 /**
75 * Create the map associated with a ThreadLocal.
76 *
77 * @param t the current thread
78 * @param firstValue value for the initial entry of the table.
79 * @param map the map to store.
80 */
81 void createMap(Thread t, T firstValue) {
82 t.inheritableThreadLocals = new ThreadLocalMap(this, firstValue);
83 }
84 }
|
59 * @return the child thread's initial value
60 */
61 protected T childValue(T parentValue) {
62 return parentValue;
63 }
64
65 /**
66 * Get the map associated with a ThreadLocal.
67 *
68 * @param t the current thread
69 */
70 ThreadLocalMap getMap(Thread t) {
71 return t.inheritableThreadLocals;
72 }
73
74 /**
75 * Create the map associated with a ThreadLocal.
76 *
77 * @param t the current thread
78 * @param firstValue value for the initial entry of the table.
79 */
80 void createMap(Thread t, T firstValue) {
81 t.inheritableThreadLocals = new ThreadLocalMap(this, firstValue);
82 }
83 }
|