diff options
author | Alex Bligh <alex@alex.org.uk> | 2013-08-21 16:02:55 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-08-22 19:10:28 +0200 |
commit | b1bbfe72ec1ebf302d97f886cc646466c0abd679 (patch) | |
tree | 12c6814d68c6b4cad6fa45bbb0d9f88569914722 /include | |
parent | 7b595f35d89d73bc69c35bf3980a89c420e8a44b (diff) |
aio / timers: On timer modification, qemu_notify or aio_notify
On qemu_mod_timer_ns, ensure qemu_notify or aio_notify is called to
end the appropriate poll(), irrespective of use_icount value.
On qemu_clock_enable, ensure qemu_notify or aio_notify is called for
all QEMUTimerLists attached to the QEMUClock.
Signed-off-by: Alex Bligh <alex@alex.org.uk>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/qemu/timer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/qemu/timer.h b/include/qemu/timer.h index cb7321c003..3fa9fa72bf 100644 --- a/include/qemu/timer.h +++ b/include/qemu/timer.h @@ -136,6 +136,15 @@ bool qemu_clock_use_for_deadline(QEMUClock *clock); QEMUTimerList *qemu_clock_get_main_loop_timerlist(QEMUClock *clock); /** + * qemu_clock_nofify: + * @clock: the clock to operate on + * + * Call the notifier callback connected with the default timer + * list linked to the clock, or qemu_notify() if none. + */ +void qemu_clock_notify(QEMUClock *clock); + +/** * timerlist_new: * @type: the clock type to associate with the timerlist * @cb: the callback to call on notification |