Parent: dbe52200549bdc61fcd94c8c41d56c58d258ad7c
Author: Pauli Virtanen <pav@iki.fi>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2023-08-21 21:24:45
Tree: 242d2f86e6e4d6ba24ab1ffc621995acf83f9d4b
hciemu: Add hciemu_flush_client_events for ordering VHCI vs bthost bthost commands execute with a delay because events may be sitting in the socketpair queues. This makes it difficult to ensure, when writing tests, that certain bthost commands have been handled, before any new events from VHCI are processed. To make event ordering possible, add a function that flushes client bthost/btdev socketpair queues, before processing any new VHCI events. This is done by pausing VHCI input processing until the kernel socketpair queues are empty.
Diffstat
| M | emulator/hciemu.c | | | 54 | ++++++++++++++++++++++++++++++++++++++++ |
| M | emulator/hciemu.h | | | 3 | +++ |
2 files changed, 57 insertions(+), 0 deletions(-)