Skip to content
Snippets Groups Projects
  • Avi Kivity's avatar
    f4414341
    sched: fix race in wait_until() · f4414341
    Avi Kivity authored
    We need to put ourself back in wait mode after every loop iteration,
    otherwise a spurious wakeup can result in the predicate returning false,
    and then we will never wait again, instead spinning endlessly.
    f4414341
    History
    sched: fix race in wait_until()
    Avi Kivity authored
    We need to put ourself back in wait mode after every loop iteration,
    otherwise a spurious wakeup can result in the predicate returning false,
    and then we will never wait again, instead spinning endlessly.