/// <nodoc /> protected ThreadState(int threadId) { ThreadId = threadId; m_barrier = new Barrier(); }