Skip to content

Commit 3c1cdbf

Browse files
committed
Update multi_threaded.rs
1 parent 3b72d84 commit 3c1cdbf

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

crates/bevy_ecs/src/schedule_v3/executor/multi_threaded.rs

+4-7
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ struct SystemTaskMetadata {
3232
}
3333

3434
/// Runs the schedule using a thread pool. Non-conflicting systems can run in parallel.
35-
///
36-
/// **Note:** If there are no ambiguities between systems with conflicting access, this will return
37-
/// the same results as the [`SingleThreadedExecutor`].
3835
pub struct MultiThreadedExecutor {
3936
/// Metadata for scheduling and running system tasks.
4037
system_task_metadata: Vec<SystemTaskMetadata>,
@@ -345,9 +342,9 @@ impl MultiThreadedExecutor {
345342

346343
fn can_run(&mut self, system_index: usize, schedule: &SystemSchedule, world: &World) -> bool {
347344
#[cfg(feature = "trace")]
348-
let system = schedule.systems[system_index].borrow();
345+
let name = schedule.systems[system_index].borrow().name();
349346
#[cfg(feature = "trace")]
350-
let _span = info_span!("check_access", name = &*system.name()).entered();
347+
let _span = info_span!("check_access", name = &*name).entered();
351348

352349
let system_meta = &mut self.system_task_metadata[system_index];
353350
if self.local_thread_running && !system_meta.is_send {
@@ -386,9 +383,9 @@ impl MultiThreadedExecutor {
386383
world: &World,
387384
) -> bool {
388385
#[cfg(feature = "trace")]
389-
let system = schedule.systems[system_index].borrow();
386+
let name = schedule.systems[system_index].borrow().name();
390387
#[cfg(feature = "trace")]
391-
let _span = info_span!("check_conditions", name = &*system.name()).entered();
388+
let _span = info_span!("check_conditions", name = &*name).entered();
392389

393390
// evaluate conditions
394391
let mut should_run = true;

0 commit comments

Comments
 (0)