Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ WriteLine() [2/4]

static void System.Diagnostics.TraceInternal.WriteLine ( object value,
string category )
inlinestatic

Definition at line 706 of file TraceInternal.cs.

707 {
708 if (UseGlobalLock)
709 {
710 lock (critSec)
711 {
712 foreach (TraceListener listener in Listeners)
713 {
714 listener.WriteLine(value, category);
715 if (AutoFlush)
716 {
717 listener.Flush();
718 }
719 }
720 return;
721 }
722 }
723 foreach (TraceListener listener2 in Listeners)
724 {
725 if (!listener2.IsThreadSafe)
726 {
727 lock (listener2)
728 {
729 listener2.WriteLine(value, category);
730 if (AutoFlush)
731 {
732 listener2.Flush();
733 }
734 }
735 }
736 else
737 {
738 listener2.WriteLine(value, category);
739 if (AutoFlush)
740 {
741 listener2.Flush();
742 }
743 }
744 }
745 }
static readonly object critSec
static TraceListenerCollection Listeners

References System.Diagnostics.TraceInternal.AutoFlush, System.Diagnostics.TraceInternal.critSec, System.Diagnostics.TraceListener.Flush(), System.Diagnostics.TraceListener.IsThreadSafe, System.Diagnostics.TraceInternal.Listeners, System.Diagnostics.TraceInternal.UseGlobalLock, System.value, and System.Diagnostics.TraceListener.WriteLine().