summaryrefslogtreecommitdiffstats
path: root/python/qemu/aqmp/models.py
diff options
context:
space:
mode:
authorJohn Snow2021-09-23 02:49:24 +0200
committerJohn Snow2021-10-12 18:22:10 +0200
commit6bfebc7306e42910cd33553d9ed385ef475d8196 (patch)
tree814bf3d05b53fc1601d5aff291b4310db6893961 /python/qemu/aqmp/models.py
parentpython/aqmp: add .empty() method to EventListener (diff)
downloadqemu-6bfebc7306e42910cd33553d9ed385ef475d8196.tar.gz
qemu-6bfebc7306e42910cd33553d9ed385ef475d8196.tar.xz
qemu-6bfebc7306e42910cd33553d9ed385ef475d8196.zip
python/aqmp: Return cleared events from EventListener.clear()
This serves two purposes: (1) It is now possible to discern whether or not clear() removed any event(s) from the queue with absolute certainty, and (2) It is now very easy to get a List of all pending events in one chunk, which is useful for the sync bridge. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-id: 20210923004938.3999963-4-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'python/qemu/aqmp/models.py')
0 files changed, 0 insertions, 0 deletions