System.Diagnostics.ProcessManager.ProcFsStateToThreadState C# (CSharp) Method

ProcFsStateToThreadState() private static method

Gets a ThreadState to represent the value returned from the status field of /proc/pid/stat.
private static ProcFsStateToThreadState ( char c ) : ThreadState
c char The status field value.
return ThreadState
        private static ThreadState ProcFsStateToThreadState(char c)
        {
            switch (c)
            {
                case 'R':
                    return ThreadState.Running;
                case 'S':
                case 'D':
                case 'T':
                    return ThreadState.Wait;
                case 'Z':
                    return ThreadState.Terminated;
                case 'W':
                    return ThreadState.Transition;
                default:
                    Debug.Fail("Unexpected status character");
                    return ThreadState.Unknown;
            }
        }