Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

Commit 4998d39a authored by RILLING Louis's avatar RILLING Louis
Browse files

tanqemu: Assert the qemu timer accuracy at deadlines

parent c5bd5c94
Pipeline #209508 failed with stages
in 6 minutes and 47 seconds
......@@ -181,6 +181,8 @@ extern "C" fn deadline_handler(opaque: *mut ::std::os::raw::c_void) {
// Safety: TODO
let timer_context = unsafe { (opaque as *const TimerContextInner).as_ref().unwrap() };
if let Some(context) = timer_context.context.lock().unwrap().upgrade() {
assert_eq!(timer_context.simulation_now(), timer_context.simulation_next_deadline());
match context.at_deadline() {
AfterDeadline::NextDeadline(deadline) => {
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