summaryrefslogtreecommitdiffstats
path: root/trace-events
diff options
context:
space:
mode:
authorStefan Hajnoczi2013-03-07 13:41:45 +0100
committerStefan Hajnoczi2013-03-15 16:07:50 +0100
commitb811203cf2fbf83e26f8e8feb2c77784259a4cbd (patch)
tree39236a7be710c49d3df65d921e0faa4a63cf8ef1 /trace-events
parentmain-loop: add qemu_get_aio_context() (diff)
downloadqemu-b811203cf2fbf83e26f8e8feb2c77784259a4cbd.tar.gz
qemu-b811203cf2fbf83e26f8e8feb2c77784259a4cbd.tar.xz
qemu-b811203cf2fbf83e26f8e8feb2c77784259a4cbd.zip
threadpool: move globals into struct ThreadPool
Move global variables into a struct so multiple thread pools can be supported in the future. This patch does not change thread-pool.h interfaces. There is still a global thread pool and it is not yet possible to create/destroy individual thread pools. Moving the variables into a struct first makes later patches easier to review. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'trace-events')
-rw-r--r--trace-events4
1 files changed, 2 insertions, 2 deletions
diff --git a/trace-events b/trace-events
index d6a847d18a..cd73b7f3ea 100644
--- a/trace-events
+++ b/trace-events
@@ -115,8 +115,8 @@ virtio_blk_data_plane_complete_request(void *s, unsigned int head, int ret) "dat
vring_setup(uint64_t physical, void *desc, void *avail, void *used) "vring physical %#"PRIx64" desc %p avail %p used %p"
# thread-pool.c
-thread_pool_submit(void *req, void *opaque) "req %p opaque %p"
-thread_pool_complete(void *req, void *opaque, int ret) "req %p opaque %p ret %d"
+thread_pool_submit(void *pool, void *req, void *opaque) "pool %p req %p opaque %p"
+thread_pool_complete(void *pool, void *req, void *opaque, int ret) "pool %p req %p opaque %p ret %d"
thread_pool_cancel(void *req, void *opaque) "req %p opaque %p"
# posix-aio-compat.c