Skip to content

Commit 9619a16

Browse files
committed
in_worker_cross doesn't need an indirect latch
1 parent 20c526e commit 9619a16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rayon-core/src/registry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -521,10 +521,10 @@ impl Registry {
521521
assert!(injected && !worker_thread.is_null());
522522
op(&*worker_thread, true)
523523
},
524-
&latch,
524+
latch,
525525
);
526526
self.inject(&[job.as_job_ref()]);
527-
current_thread.wait_until(job.latch);
527+
current_thread.wait_until(&job.latch);
528528
job.into_result()
529529
}
530530

0 commit comments

Comments
 (0)