1
0
Fork 0

runtime: link_thread -> link_task

This commit is contained in:
mwojcik 2021-10-06 07:59:55 +02:00
parent 827c6c1306
commit 50262b3f0c
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ pub mod drtio {
let up_destinations = up_destinations.clone(); let up_destinations = up_destinations.clone();
task::spawn(async move { task::spawn(async move {
let routing_table = routing_table.borrow(); let routing_table = routing_table.borrow();
link_thread(&aux_mutex, &routing_table, &up_destinations, timer).await; link_task(&aux_mutex, &routing_table, &up_destinations, timer).await;
}); });
} }
@ -245,7 +245,7 @@ pub mod drtio {
} }
} }
pub async fn link_thread(aux_mutex: &Rc<Mutex<bool>>, pub async fn link_task(aux_mutex: &Rc<Mutex<bool>>,
routing_table: &drtio_routing::RoutingTable, routing_table: &drtio_routing::RoutingTable,
up_destinations: &Rc<RefCell<[bool; drtio_routing::DEST_COUNT]>>, up_destinations: &Rc<RefCell<[bool; drtio_routing::DEST_COUNT]>>,
timer: GlobalTimer) { timer: GlobalTimer) {