OSDN Git Service

QEMUMachine: add events_wait method
authorJohn Snow <jsnow@redhat.com>
Thu, 23 May 2019 17:06:41 +0000 (13:06 -0400)
committerMax Reitz <mreitz@redhat.com>
Fri, 14 Jun 2019 12:16:57 +0000 (14:16 +0200)
commitf6f4b3f045ea18e3fa93a50cd0462236c428d62e
tree085162b81d94b75d71cb2c1d8391f4feeba6d32e
parent8b6f5f8b9f3bec5cbeebefab34bae0102a2581b3
QEMUMachine: add events_wait method

Instead of event_wait which looks for a single event, add an events_wait
which can look for any number of events simultaneously. However, it
will still only return one at a time, whichever happens first.

Signed-off-by: John Snow <jsnow@redhat.com>
Message-id: 20190523170643.20794-4-jsnow@redhat.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
python/qemu/__init__.py