altos: shut down packet mode cleanly
authorKeith Packard <keithp@keithp.com>
Mon, 30 Aug 2010 06:22:27 +0000 (23:22 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 30 Aug 2010 06:22:27 +0000 (23:22 -0700)
commit63c832394a829f41b8f77d075786530536360349
tree794b3f9f02c66434497cf68d49e06d7ae985b29c
parent43619c13f749b79c096d1e8fdab3d5cfb5fd85f1
altos: shut down packet mode cleanly

Instead of constantly bashing the packet master thread, let it shut
itself down in an orderly fashion. It will shut down fairly quickly as
all of the activities in that thread are bounded. Otherwise, the
master packet thread might leave mutexes locked and all sorts of other
horrors.

Tested on Linux and Mac OS X and shown to be reliable.

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