mirror of
https://github.com/ZuneDev/MicrosoftIris.git
synced 2026-07-27 13:13:29 -07:00
Clean up more image-related code
This commit is contained in:
@@ -71,18 +71,14 @@ namespace Microsoft.Iris.Queues
|
||||
while (true)
|
||||
{
|
||||
QueueItem nextItem = queue.GetNextItem();
|
||||
if (nextItem != null)
|
||||
{
|
||||
var debugString = nextItem.ToDebugPacketString();
|
||||
Application.Debugger?.LogDispatcher(debugString);
|
||||
Trace.WriteLine(TraceCategory.Queues, 0, "Dispatcher nextItem := {0}", debugString);
|
||||
|
||||
nextItem.Dispatch();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (nextItem == null)
|
||||
break;
|
||||
}
|
||||
|
||||
var debugString = nextItem.ToDebugPacketString();
|
||||
Application.Debugger?.LogDispatcher(debugString);
|
||||
Trace.WriteLine(TraceCategory.Queues, 0, "Dispatcher nextItem := {0}", debugString);
|
||||
|
||||
nextItem.Dispatch();
|
||||
}
|
||||
}
|
||||
finally
|
||||
|
||||
@@ -235,14 +235,14 @@ namespace Microsoft.Iris.Session
|
||||
|
||||
protected override void PostItem_SameThread(QueueItem item, int priority)
|
||||
{
|
||||
if (!(_masterQueue[priority] is SimpleQueue master))
|
||||
if (_masterQueue[priority] is not SimpleQueue master)
|
||||
return;
|
||||
master.PostItem(item);
|
||||
}
|
||||
|
||||
protected override void PostItems_SameThread(QueueItem.FIFO items, int priority)
|
||||
{
|
||||
if (!(_masterQueue[priority] is SimpleQueue master))
|
||||
if (_masterQueue[priority] is not SimpleQueue master)
|
||||
return;
|
||||
master.PostItems(items);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user