diff options
author | Kevin Wolf <kwolf@redhat.com> | 2009-10-22 17:54:38 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-27 12:28:59 -0500 |
commit | 9a1e94812913667fe52d01c8ee2b7efe5f404478 (patch) | |
tree | 1bce5fd99aac008ef46b0c3fb7ccfb6988d094a4 /qemu-tool.c | |
parent | 4f999d05f55586ba73494c5ada6d9c5eb9eb800c (diff) | |
download | qemu-9a1e94812913667fe52d01c8ee2b7efe5f404478.zip qemu-9a1e94812913667fe52d01c8ee2b7efe5f404478.tar.gz qemu-9a1e94812913667fe52d01c8ee2b7efe5f404478.tar.bz2 |
Introduce contexts for asynchronous callbacks
Add the possibility to use AIO and BHs without allowing foreign callbacks to be
run. Basically, you put your own AIOs and BHs in a separate context. For
details see the comments in the source.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-tool.c')
-rw-r--r-- | qemu-tool.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/qemu-tool.c b/qemu-tool.c index ba24aa2..a1af4ac 100644 --- a/qemu-tool.c +++ b/qemu-tool.c @@ -43,6 +43,19 @@ void monitor_print_filename(Monitor *mon, const char *filename) { } +void async_context_push(void) +{ +} + +void async_context_pop(void) +{ +} + +int get_async_context_id(void) +{ + return 0; +} + QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque) { QEMUBH *bh; |