Clean up more image-related code

This commit is contained in:
Yoshi Askharoun
2026-07-26 17:50:43 -05:00
parent df8ea125db
commit 106a7a9545
5 changed files with 121 additions and 122 deletions
+7 -11
View File
@@ -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
+2 -2
View File
@@ -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);
}