aio / timers: Add QEMUTimerListGroup to AioContext

Add a QEMUTimerListGroup each AioContext (meaning a QEMUTimerList
associated with each clock is added) and delete it when the
AioContext is freed.

Signed-off-by: Alex Bligh <alex@alex.org.uk>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
This commit is contained in:
Alex Bligh 2013-08-21 16:02:49 +01:00 committed by Stefan Hajnoczi
parent 754d6a544d
commit dae21b98b9
4 changed files with 12 additions and 0 deletions

View file

@ -12,6 +12,7 @@
#include <glib.h>
#include "block/aio.h"
#include "qemu/timer.h"
AioContext *ctx;
@ -630,6 +631,8 @@ int main(int argc, char **argv)
{
GSource *src;
init_clocks();
ctx = aio_context_new();
src = aio_get_g_source(ctx);
g_source_attach(src, NULL);