public class TrueThreadLocal<T>
extends java.lang.ThreadLocal<T>
ThreadLocal that is local to the current thread, rather than Strand.
If the current strand is a thread, then this would behave no different than a ThreadLocal,
but if it's a fiber, then the value is local to the underlying thread - not the fiber.
IMPORTANT: This class is only useful in circumstances where a data structure is striped to reduce contention,
not when the value needs to actually be associated with the thread in any way.| Constructor and Description |
|---|
TrueThreadLocal() |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
void |
set(T value) |