Parent: dd78814e7ffb6a80646b0748ee5ac64600588992
Author: Marcin Kraglak <marcin.kraglak@tieto.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2014-02-19 17:22:05
Tree: fc21d1b71b073a2ed438fdb7b2574df32574f920
emulator/bthost: Fix command queue Now new commands will be pushed to tail. Queue will be consumed from head, firstly added commands will be sent. It repairs this warning from android-tester: ==20561== 1,904 bytes in 7 blocks are definitely lost in loss record 30 of 31 ==20561== at 0x4006AB1: malloc (in /usr/lib/valgrind/ vgpreload_memcheck-x86-linux.so) ==20561== by 0x8050293: send_command (bthost.c:389) ==20561== by 0x80543E1: start_stack (hciemu.c:299) ==20561== by 0x41043D00: ??? (in /usr/lib/libglib-2.0.so.0.3600.4) ==20561== by 0x410470E5: g_main_context_dispatch (in /usr/lib/libglib-2.0.so.0.3600.4) ==20561== by 0x41047497: ??? (in /usr/lib/libglib-2.0.so.0.3600.4) ==20561== by 0x41047912: g_main_loop_run (in /usr/lib/libglib-2.0.so.0.3600.4) ==20561== by 0x8055870: tester_run (tester.c:798) ==20561== by 0x804B980: main (android-tester.c:3984)
Diffstat
| M | emulator/bthost.c | | | 10 | +++++++- - - |
1 files changed, 7 insertions(+), 3 deletions(-)