]> git.proxmox.com Git - qemu.git/commit
threadpool: move globals into struct ThreadPool
authorStefan Hajnoczi <stefanha@redhat.com>
Thu, 7 Mar 2013 12:41:45 +0000 (13:41 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 15 Mar 2013 15:07:50 +0000 (16:07 +0100)
commitb811203cf2fbf83e26f8e8feb2c77784259a4cbd
tree39236a7be710c49d3df65d921e0faa4a63cf8ef1
parent5f3aa1ff4781f39e05b9892d58319a09fedc8918
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>
thread-pool.c
trace-events