chiark / gitweb /
clock: Some todos
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 20 Mar 2021 19:00:45 +0000 (19:00 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 20 Mar 2021 21:52:17 +0000 (21:52 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/clock.rs

index 63e8b0892b2328bfce09b24a5a684be7d01fbccd..6d376307f74552c45f63d1af04261cfce6dfa543 100644 (file)
@@ -296,6 +296,8 @@ impl ThreadState {
   #[throws(IE)]
   fn run(mut self) {
     loop {
+      // xxx this seems to spin
+
       match self.next_wakeup {
         Some(wakeup) => {
           let timeout = wakeup - now()?;
@@ -671,6 +673,8 @@ impl PieceTrait for Clock {
     let state: &mut State = gpc.xdata_mut_exp()?;
     let was_running = state.implies_running(was_held);
 
+    // xxx auto-change active player
+
     state.do_start_or_stop(piece, was_running, now_held, ig)?;
     unprepared_update(piece)
   }