Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetValueSlow()

T System.Threading.ThreadLocal< T >.GetValueSlow ( )
inlineprivate

Definition at line 329 of file ThreadLocal.cs.

330 {
331 int num = ~_idComplement;
332 if (num < 0)
333 {
334 throw new ObjectDisposedException(SR.ThreadLocal_Disposed);
335 }
337 T val;
338 if (_valueFactory == null)
339 {
340 val = default(T);
341 }
342 else
343 {
344 val = _valueFactory();
345 if (IsValueCreated)
346 {
347 throw new InvalidOperationException(SR.ThreadLocal_Value_RecursiveCallsToValue);
348 }
349 }
350 Value = val;
351 return val;
352 }
static void NotifyOfCrossThreadDependency()
Definition Debugger.cs:44

References System.Threading.ThreadLocal< T >._valueFactory, System.Threading.ThreadLocal< T >.IsValueCreated, System.Diagnostics.Debugger.NotifyOfCrossThreadDependency(), System.SR.ThreadLocal_Disposed, System.SR.ThreadLocal_Value_RecursiveCallsToValue, and System.Threading.ThreadLocal< T >.Value.