diff options
Diffstat (limited to 'iothread.c')
-rw-r--r-- | iothread.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -369,3 +369,9 @@ IOThread *iothread_by_id(const char *id) { return IOTHREAD(object_resolve_path_type(id, TYPE_IOTHREAD, NULL)); } + +bool qemu_in_iothread(void) +{ + return qemu_get_current_aio_context() == qemu_get_aio_context() ? + false : true; +} |