diff options
author | Keith Packard <keithp@keithp.com> | 2010-11-26 17:39:40 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-12-22 20:39:40 -0800 |
commit | 484b44e81b655f1ecb48256095382a56d2839bae (patch) | |
tree | 14446271e5d92b9ea9bee040c7787ba48c616229 /src/ao_packet.c | |
parent | 07213dc34fa20470a4b36a327a83d75b0f010ebb (diff) |
altos: eliminate ao_wake_task
Waking up a task waiting on some random object is a bad idea. Fix
the waiters to look for suitable signalling.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_packet.c')
-rw-r--r-- | src/ao_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ao_packet.c b/src/ao_packet.c index 9896149c..f627e02b 100644 --- a/src/ao_packet.c +++ b/src/ao_packet.c @@ -117,7 +117,7 @@ ao_packet_flush(void) * then poke the master to send all queued data */ if (ao_packet_tx_used && ao_packet_master_sleeping) - ao_wake_task(&ao_packet_task); + ao_wakeup(&ao_packet_master_sleeping); } #endif /* PACKET_HAS_MASTER */ |