@@ -32,9 +32,6 @@ struct SystemTaskMetadata {
32
32
}
33
33
34
34
/// 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`].
38
35
pub struct MultiThreadedExecutor {
39
36
/// Metadata for scheduling and running system tasks.
40
37
system_task_metadata : Vec < SystemTaskMetadata > ,
@@ -345,9 +342,9 @@ impl MultiThreadedExecutor {
345
342
346
343
fn can_run ( & mut self , system_index : usize , schedule : & SystemSchedule , world : & World ) -> bool {
347
344
#[ cfg( feature = "trace" ) ]
348
- let system = schedule. systems [ system_index] . borrow ( ) ;
345
+ let name = schedule. systems [ system_index] . borrow ( ) . name ( ) ;
349
346
#[ cfg( feature = "trace" ) ]
350
- let _span = info_span ! ( "check_access" , name = & * system . name( ) ) . entered ( ) ;
347
+ let _span = info_span ! ( "check_access" , name = & * name) . entered ( ) ;
351
348
352
349
let system_meta = & mut self . system_task_metadata [ system_index] ;
353
350
if self . local_thread_running && !system_meta. is_send {
@@ -386,9 +383,9 @@ impl MultiThreadedExecutor {
386
383
world : & World ,
387
384
) -> bool {
388
385
#[ cfg( feature = "trace" ) ]
389
- let system = schedule. systems [ system_index] . borrow ( ) ;
386
+ let name = schedule. systems [ system_index] . borrow ( ) . name ( ) ;
390
387
#[ cfg( feature = "trace" ) ]
391
- let _span = info_span ! ( "check_conditions" , name = & * system . name( ) ) . entered ( ) ;
388
+ let _span = info_span ! ( "check_conditions" , name = & * name) . entered ( ) ;
392
389
393
390
// evaluate conditions
394
391
let mut should_run = true ;
0 commit comments