Add a comment for the wait_for_jobs function.
Co-authored-by: Zoxc <zoxc32@gmail.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user