Unverified Commit 6703879a authored by vercel-fleet-prod[bot]'s avatar vercel-fleet-prod[bot] Committed by GitHub

Clarify debug-only task lock counter

Co-authored-by: 's avatarLuke Sandberg <210140+lukesandberg@users.noreply.github.com>
parent c3173599
......@@ -225,10 +225,6 @@ pub trait ChildExecuteContext<'e>: Send + Sized {
}
/// Debug-only count of independently acquired task locks.
///
/// A task guard borrows this counter from its context. The borrow, not the counter value, ties
/// the guard to the context and prevents suspension or context destruction while the guard lives.
/// Release builds have no counter state or bookkeeping.
struct TaskLockCounter(#[cfg(debug_assertions)] Cell<u8>);
#[cfg(not(debug_assertions))]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment