-
-
Notifications
You must be signed in to change notification settings - Fork 30
Theraot.Threading.NoTrackingThreadLocal
Alfonso J. Ramos edited this page Nov 10, 2015
·
2 revisions
This class is the not tracking backend for ThreadLocal
. The internal implementation uses LocalDataStoreSlot
this means that:
- When each thread ends, the information stored for it is disposed.
- There is no way to access the information of another thread.
NoTrackingThreadLocal<T>
in addition offers:
-
TryGetValue
will only return the value for the current thread if it has been already created. -
EraseValue
uncreates the value for the current thread.