internal virtual DocumentsWriterPerThread Reset(ThreadState threadState, bool closed) { //Debug.Assert(threadState.HeldByCurrentThread); DocumentsWriterPerThread dwpt = threadState.dwpt; if (!closed) { threadState.Reset(); } else { threadState.Deactivate(); } return(dwpt); }
internal static DocumentsWriterPerThread Reset(ThreadState threadState, bool closed) // LUCENENET: CA1822: Mark members as static { if (Debugging.AssertsEnabled) { Debugging.Assert(threadState.IsHeldByCurrentThread); } DocumentsWriterPerThread dwpt = threadState.dwpt; if (!closed) { threadState.Reset(); } else { threadState.Deactivate(); } return(dwpt); }
internal DocumentsWriterPerThread Reset(ThreadState threadState, bool closed) { if (Debugging.AssertsEnabled) { Debugging.Assert(threadState.IsHeldByCurrentThread); } DocumentsWriterPerThread dwpt = threadState.dwpt; if (!closed) { threadState.Reset(); } else { threadState.Deactivate(); } return(dwpt); }
internal virtual DocumentsWriterPerThread Reset(ThreadState threadState, bool closed) { //Debug.Assert(threadState.HeldByCurrentThread); DocumentsWriterPerThread dwpt = threadState.Dwpt; if (!closed) { threadState.Reset(); } else { threadState.Deactivate(); } return dwpt; }