14 references to TimerThreadState
System.Net.Requests (14)
System\Net\TimerThread.cs (14)
88private static int s_threadState = (int)TimerThreadState.Idle; // Really a TimerThreadState, but need an int for Interlocked. 464TimerThreadState oldState = (TimerThreadState)Interlocked.CompareExchange( 466(int)TimerThreadState.Running, 467(int)TimerThreadState.Idle); 469if (oldState == TimerThreadState.Idle) 489if (Interlocked.CompareExchange(ref s_threadState, (int)TimerThreadState.Running, (int)TimerThreadState.Running) != 490(int)TimerThreadState.Running) 570Interlocked.CompareExchange(ref s_threadState, (int)TimerThreadState.Idle, (int)TimerThreadState.Running); 574if (Interlocked.CompareExchange(ref s_threadState, (int)TimerThreadState.Running, (int)TimerThreadState.Idle) == 575(int)TimerThreadState.Idle)