altos: Make ao_cur_task_index track ao_cur_task in ao_yield
authorKeith Packard <keithp@keithp.com>
Sun, 26 Aug 2012 16:49:34 +0000 (09:49 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 26 Aug 2012 16:49:34 +0000 (09:49 -0700)
This keeps the two main task references (index and pointer) in
agreement during task switching, avoiding an extra assignment at the
end of the task switching loop.

Signed-off-by: Keith Packard <keithp@keithp.com>

No differences found