1 write to _messageQueue
Microsoft.Extensions.Logging.Console (1)
ConsoleLoggerProcessor.cs (1)
65
_messageQueue
= new Queue<LogMessageEntry>();
21 references to _messageQueue
Microsoft.Extensions.Logging.Console (21)
ConsoleLoggerProcessor.cs (21)
31
lock (
_messageQueue
)
34
Monitor.PulseAll(
_messageQueue
);
49
lock (
_messageQueue
)
54
Monitor.PulseAll(
_messageQueue
);
112
lock (
_messageQueue
)
114
while (
_messageQueue
.Count >= MaxQueueLength && !_isAddingCompleted)
123
Monitor.Wait(
_messageQueue
);
128
Debug.Assert(
_messageQueue
.Count < MaxQueueLength);
129
bool startedEmpty =
_messageQueue
.Count == 0;
132
_messageQueue
.Enqueue(new LogMessageEntry(
143
_messageQueue
.Enqueue(item);
149
Monitor.PulseAll(
_messageQueue
);
161
lock (
_messageQueue
)
163
while (
_messageQueue
.Count == 0 && !_isAddingCompleted)
165
Monitor.Wait(
_messageQueue
);
168
if (
_messageQueue
.Count > 0)
170
item =
_messageQueue
.Dequeue();
171
if (
_messageQueue
.Count == MaxQueueLength - 1)
174
Monitor.PulseAll(
_messageQueue
);
198
lock (
_messageQueue
)
201
Monitor.PulseAll(
_messageQueue
);