mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
aio / timers: Make qemu_run_timers and qemu_run_all_timers return progress
Make qemu_run_timers and qemu_run_all_timers return progress so that aio_poll etc. can determine whether a timer has been run. Signed-off-by: Alex Bligh <alex@alex.org.uk> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
parent
cd758dd0ac
commit
f9a976b740
2 changed files with 31 additions and 8 deletions
|
@ -92,8 +92,25 @@ bool timer_pending(QEMUTimer *ts);
|
|||
bool timer_expired(QEMUTimer *timer_head, int64_t current_time);
|
||||
uint64_t timer_expire_time_ns(QEMUTimer *ts);
|
||||
|
||||
void qemu_run_timers(QEMUClock *clock);
|
||||
void qemu_run_all_timers(void);
|
||||
/**
|
||||
* qemu_run_timers:
|
||||
* @clock: clock on which to operate
|
||||
*
|
||||
* Run all the timers associated with a clock.
|
||||
*
|
||||
* Returns: true if any timer ran.
|
||||
*/
|
||||
bool qemu_run_timers(QEMUClock *clock);
|
||||
|
||||
/**
|
||||
* qemu_run_all_timers:
|
||||
*
|
||||
* Run all the timers associated with every clock.
|
||||
*
|
||||
* Returns: true if any timer ran.
|
||||
*/
|
||||
bool qemu_run_all_timers(void);
|
||||
|
||||
void configure_alarms(char const *opt);
|
||||
void init_clocks(void);
|
||||
int init_timer_alarm(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue