Stefan Hajnoczi 9b34277d23 aio: add a ThreadPool instance to AioContext
This patch adds a ThreadPool to AioContext.  It's possible that some
AioContext instances will never use the ThreadPool, so defer creation
until aio_get_thread_pool().

The reason why AioContext should have the ThreadPool is because the
ThreadPool is bound to a AioContext instance where the work item's
callback function is invoked.  It doesn't make sense to keep the
ThreadPool pointer anywhere other than AioContext.  For example,
block/raw-posix.c can get its AioContext's ThreadPool and submit work.

Special note about headers: I used struct ThreadPool in aio.h because
there is a circular dependency if aio.h includes thread-pool.h.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
2013-03-15 16:07:50 +01:00
2012-12-19 08:29:06 +01:00
2013-02-28 09:19:00 +01:00
2012-10-24 10:26:22 +02:00
2013-03-15 16:07:49 +01:00
2013-02-28 09:19:00 +01:00
2013-03-04 09:54:17 +01:00
2013-03-13 12:21:04 -05:00
2012-09-07 09:02:44 +03:00
2013-02-21 10:38:07 +01:00
2012-11-01 13:10:06 +01:00
2013-02-21 16:17:31 -06:00
2013-03-11 13:32:03 +01:00
2012-05-14 07:27:24 +02:00
2013-03-12 10:35:55 +01:00
2013-02-16 14:50:59 +01:00
2013-03-12 13:40:11 -05:00
2013-03-12 13:40:11 -05:00
2013-02-21 16:17:31 -06:00
2011-12-09 11:25:22 +00:00
2013-03-08 21:17:46 +01:00
2013-02-16 11:12:13 +00:00
2013-03-11 13:32:03 +01:00
2013-03-11 13:32:03 +01:00
2013-02-22 21:21:10 +01:00
2013-02-22 21:29:43 +01:00
2013-02-18 08:39:10 -06:00
2011-12-11 17:50:43 -06:00
2013-02-15 17:40:56 -06:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%