You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've updated this issue to reflect the MCLOCK/PCLOCK split in mirage-types; the dependencies here are on MCLOCK rather than PCLOCK, which is lighter. We should still evaluate refactoring to remove the dependency entirely IMO.
as far as I'm concerned, we should have support for scheduling reoccuring tasks (Lwt_engine.on_timer comes to mind) in MirageOS. manually writing Lwt.async (fun () ->let rec go () = ... sleep n.. go () in go ()) is barely sustainable (plus the sleep n is wrong, since you want to schedule every n ms rather than 'do something ; sleep n ms ; do it again' (which then includes the execution time of the code run).
See https://lists.xenproject.org/archives/html/mirageos-devel/2016-06/msg00021.html for details -- timers in
arpv4.ml
,ndpv6.ml
, andwindow.ml
usewall-clockmonotonic time and occasionally firingtick
thread, but could use sleeping threads instead to avoid needing to reference a clock.The text was updated successfully, but these errors were encountered: