Class FastThreadLocal<T>
java.lang.Object
java.lang.ThreadLocal<T>
com.xpdustry.claj.common.util.FastThreadLocal<T>
ThreadLocal with MRU fast path.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ThreadLocal
withInitial
-
Field Details
-
supplier
-
-
Constructor Details
-
FastThreadLocal
public FastThreadLocal() -
FastThreadLocal
-
-
Method Details
-
with
-
initialValue
- Overrides:
initialValuein classThreadLocal<T>
-
get
- Overrides:
getin classThreadLocal<T>
-
set
- Overrides:
setin classThreadLocal<T>
-
remove
public void remove()- Overrides:
removein classThreadLocal<T>
-
getCurrent
protected long getCurrent() -
tryUpdate
-
tryRemove
protected void tryRemove(long current)
-