mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
sync: instrument Semaphore
for task dumps (#6499)
This commit is contained in:
parent
125a185749
commit
2438b43671
@ -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"))]
|
||||
|
Loading…
x
Reference in New Issue
Block a user