From 4582e5eceda465a7e5f332edb2b8bd6a99934f6c Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Mon, 25 Nov 2024 18:03:53 +0800 Subject: [PATCH] moninj: replace inject lock with async lock --- src/runtime/src/moninj.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/src/moninj.rs b/src/runtime/src/moninj.rs index a6b9bbe..425e480 100644 --- a/src/runtime/src/moninj.rs +++ b/src/runtime/src/moninj.rs @@ -79,7 +79,7 @@ mod remote_moninj { } pub async fn inject(aux_mutex: &Rc>, timer: GlobalTimer, linkno: u8, destination: u8, channel: i32, overrd: i8, value: i8) { - let _lock = aux_mutex.lock(); + let _lock = aux_mutex.async_lock().await; drtioaux_async::send(linkno, &drtioaux_async::Packet::InjectionRequest { destination: destination, channel: channel as _,