Commit 1fba244f authored by RILLING Louis's avatar RILLING Louis
Browse files

tanqemu: Add comment about currently unsafe interface

parent 50580818
......@@ -125,6 +125,8 @@ impl TimerContextInner {
Ok(())
}
// TODO: Currently unsafe! Assumes that start() has been called before and that stop() is never
// called twice. Otherwise calling stop() prematurately drops self!
pub fn stop(self: &Pin<Arc<Self>>) {
// Safety: TODO
let qemu_timer = self.qemu_timer.lock().unwrap().as_mut_ptr();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment