Statistics
| Branch: | Revision:

root / tests / test-thread-pool.c @ 0d09e41a

History | View | Annotate | Download (5.5 kB)

# Date Author Comment
c4d9d196 03/15/2013 05:07 pm Stefan Hajnoczi

threadpool: drop global thread pool

Now that each AioContext has a ThreadPool and the main loop AioContext
can be fetched with bdrv_get_aio_context(), we can eliminate the concept
of a global thread pool from thread-pool.c.

The submit functions must take a ThreadPool* argument....

737e150e 12/19/2012 09:31 am Paolo Bonzini

block: move include files to include/block/

Signed-off-by: Paolo Bonzini <>

8a805c22 12/11/2012 12:04 pm Stefan Hajnoczi

tests: avoid qemu_aio_flush() in test-thread-pool.c

We need to eliminate calls to qemu_aio_flush() since the function is
being removed. Most callers will use bdrv_drain_all() instead but
test-thread-pool.c is lower level.

Since the test uses the global AioContext we can loop on qemu_aio_wait()...

d60478c5 11/27/2012 04:50 pm Paolo Bonzini

tests: make threadpool cancellation test looser

The cancellation test is failing on the buildbots. While the failure
merits a little more investigation to understand what is going on,
the logs show that the failure is not impacting the coverage
provided by the test. Hence, loosen a bit the assertions in a...

74c856e9 11/26/2012 05:37 pm Paolo Bonzini

tests: add thread pool unit tests

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Anthony Liguori <>