alarm: Clean up condition variable usage
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 11 Oct 2018 20:33:14 +0000 (16:33 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 11 Oct 2018 20:33:14 +0000 (16:33 -0400)
commit73001cbb86fe9ff9272c45881595bd2fc482a8b9
tree22efaf84ceed809e0872c04fccc10899dc7e9867
parentb54bbd35da8a3f02102cdcaf5057ad07ff94dbe9
alarm: Clean up condition variable usage

The while loop is the classic Mesa-semantic use of a CV.  For some
reason, the old version was a tortured while loop with breaks and
whatnot.  The new version is simpler, easier to read, classically
correct, and has a nicer personality.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/alarm.c
user/parlib/alarm.c