Add a comment for the wait_for_jobs function.

Co-authored-by: Zoxc <zoxc32@gmail.com>
This commit is contained in:
ywxt
2025-06-26 12:30:38 +08:00
parent 0ceac216c9
commit 44e69f592f

View File

@@ -800,6 +800,8 @@ impl WorkerThread {
unsafe { self.wait_or_steal_until(latch, false) };
}
// Wait until the latch is set. Executes local jobs if `is_job` is true for them and
// `all_jobs_started` still returns false.
#[inline]
pub(super) unsafe fn wait_for_jobs<L: AsCoreLatch + ?Sized, const BROADCAST_JOBS: bool>(
&self,