private void TraceOutput(ParallelBZip2OutputStream.TraceBits bits, string format, params object[] varParams) { if ((bits & this.desiredTrace) != ParallelBZip2OutputStream.TraceBits.None) { object obj = this.outputLock; lock (obj) { int hashCode = Thread.CurrentThread.GetHashCode(); Console.Write("{0:000} PBOS ", hashCode); Console.WriteLine(format, varParams); } } }
private void TraceOutput(ParallelBZip2OutputStream.TraceBits bits, string format, params object[] varParams) { if ((bits & this.desiredTrace) != ParallelBZip2OutputStream.TraceBits.None) { lock (this.outputLock) { int hashCode = Thread.CurrentThread.GetHashCode(); Console.ForegroundColor = hashCode % 8 + ConsoleColor.Green; Console.Write("{0:000} PBOS ", hashCode); Console.WriteLine(format, varParams); Console.ResetColor(); } } }