altos: Update time for next alarm each time a task is added
authorKeith Packard <keithp@keithp.com>
Thu, 29 Aug 2013 03:54:31 +0000 (21:54 -0600)
committerKeith Packard <keithp@keithp.com>
Thu, 29 Aug 2013 03:54:31 +0000 (21:54 -0600)
commit44d4c66b21d6b5a0c656fdff6d01ef1d125c1101
tree5c9ea48e92fd877eb6cc0db8d29b43182639f492
parent39475c7b8da4f29936f73ffa2bff112f50ee9328
altos: Update time for next alarm each time a task is added

Adding a task with a sooner timeout than existing alarm tasks was not
correctly updating the time to fire the next alarm, causing tasks to
be delayed by the wrong amount.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_sample_profile.c
src/core/ao_task.c