mark call that locks execbody from using that routine

This commit is contained in:
mzntori 2024-03-29 21:05:21 +01:00
parent b5e95668a5
commit 9d94328cd6

View file

@ -1223,10 +1223,15 @@ impl Routine {
mutlock.parent_params.curr_act = mutlock.self_act_ar.to_owned().unwrap();
}
dbg!("before");
// `self_ar` is the routine you want to read in the execbody i think, but its used to call that execbody.
// So execbody waits for itself to finish.
(self_ar.read().await.exec_body)(
self_ar.read().await.parent_params.clone()
).await;
dbg!("after");
// (self.exec_body)(
// self.parent_params.clone()
// ).await;