mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-22 00:00:11 +02:00
sync: instrument Semaphore for task dumps (#6499)
This commit is contained in:
@@ -575,6 +575,8 @@ impl Future for Acquire<'_> {
|
||||
type Output = Result<(), AcquireError>;
|
||||
|
||||
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
|
||||
ready!(crate::trace::trace_leaf(cx));
|
||||
|
||||
#[cfg(all(tokio_unstable, feature = "tracing"))]
|
||||
let _resource_span = self.node.ctx.resource_span.clone().entered();
|
||||
#[cfg(all(tokio_unstable, feature = "tracing"))]
|
||||
|
||||
Reference in New Issue
Block a user