File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Code/Framework/AzCore/AzCore/IO/Streamer Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -549,6 +549,11 @@ namespace AZ::IO
549
549
}
550
550
551
551
// If neither has started and have the same priority, prefer to start the closest deadline.
552
+ if (firstRead->m_deadline == secondRead->m_deadline )
553
+ {
554
+ return Order::Equal;
555
+ }
556
+
552
557
return firstRead->m_deadline < secondRead->m_deadline ? Order::FirstRequest : Order::SecondRequest;
553
558
}
554
559
@@ -598,6 +603,12 @@ namespace AZ::IO
598
603
s64 secondReadOffset = AZStd::visit (offset, second->GetCommand ());
599
604
s64 firstSeekDistance = abs (aznumeric_cast<s64>(m_threadData.m_lastFileOffset ) - firstReadOffset);
600
605
s64 secondSeekDistance = abs (aznumeric_cast<s64>(m_threadData.m_lastFileOffset ) - secondReadOffset);
606
+
607
+ if (firstSeekDistance == secondSeekDistance)
608
+ {
609
+ return Order::Equal;
610
+ }
611
+
601
612
return firstSeekDistance < secondSeekDistance ? Order::FirstRequest : Order::SecondRequest;
602
613
}
603
614
You can’t perform that action at this time.
0 commit comments