summaryrefslogtreecommitdiff
path: root/src/ao_packet.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-02-27 15:11:44 -0800
committerKeith Packard <keithp@keithp.com>2010-02-27 15:11:44 -0800
commit1d6d8d76ec65373ffee70add75d183f5c4168f61 (patch)
treee294e81c8dbc62ebfda09434ada83e563042a999 /src/ao_packet.c
parentf1956ebadd7bf46b84a05a0c383b6404ca26b344 (diff)
Eliminate deadlock when writing config from radio link
Writing the 'Saved\r\n' string would fill the packet buffer and cause a flush to occur, which would need to wait for the radio link to receive and transmit a packet. The radio link always re-fetches the radio channel number when lighting up the radio, so it need to look in the config space. If the config mutex was held by the config writing process while the radio was trying to get the channel number, then we'd get a deadlock. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_packet.c')
0 files changed, 0 insertions, 0 deletions