]> Git Repo - qemu.git/blobdiff - tests/test-thread-pool.c
qapi: Plumb in 'boxed' to qapi generator lower levels
[qemu.git] / tests / test-thread-pool.c
index 40600b40bb92dc993061edaf2f75725d19f1bc48..8dbf66a44a557af5b9049dff910983e31758227d 100644 (file)
@@ -1,9 +1,9 @@
 #include "qemu/osdep.h"
-#include <glib.h>
 #include "qemu-common.h"
 #include "block/aio.h"
 #include "block/thread-pool.h"
 #include "block/block.h"
+#include "qapi/error.h"
 #include "qemu/timer.h"
 #include "qemu/error-report.h"
 
@@ -91,9 +91,9 @@ static void co_test_cb(void *opaque)
 static void test_submit_co(void)
 {
     WorkerTestData data;
-    Coroutine *co = qemu_coroutine_create(co_test_cb);
+    Coroutine *co = qemu_coroutine_create(co_test_cb, &data);
 
-    qemu_coroutine_enter(co, &data);
+    qemu_coroutine_enter(co);
 
     /* Back here once the worker has started.  */
 
This page took 0.022318 seconds and 4 git commands to generate.