File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/tools/miri/src/concurrency Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -728,7 +728,7 @@ impl<'tcx> ThreadManager<'tcx> {
728
728
}
729
729
// No callbacks immediately scheduled, pick a regular thread to execute.
730
730
// The active thread blocked or yielded. So we go search for another enabled thread.
731
- // We build the list of threads by starting with the thread after the current one, followed by
731
+ // We build the list of threads by starting with the threads after the current one, followed by
732
732
// the threads before the current one and then the current thread itself (i.e., this iterator acts
733
733
// like `threads.rotate_left(self.active_thread.index() + 1)`. This ensures that if we pick the first
734
734
// eligible thread, we do regular round-robin scheduling, and all threads get a chance to take a step.
@@ -752,7 +752,7 @@ impl<'tcx> ThreadManager<'tcx> {
752
752
self . active_thread = id;
753
753
}
754
754
}
755
- //This completes the `yield`, if any was requested.
755
+ // This completes the `yield`, if any was requested.
756
756
self . yield_active_thread = false ;
757
757
758
758
if self . threads [ self . active_thread ] . state . is_enabled ( ) {
You can’t perform that action at this time.
0 commit comments