-
-
Notifications
You must be signed in to change notification settings - Fork 31
Theraot.Threading.NoTrackingThreadLocal
Alfonso J. Ramos edited this page Nov 8, 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:
-
TryGetValuewill only return the value for the current thread if it has been already created. -
EraseValueuncreates the value for the current thread.