Statistics
| Branch: | Revision:

root / thread-pool.c @ 26ca8c06

History | View | Annotate | Download (7.6 kB)

# Date Author Comment
1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

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

block: move include files to include/block/

Signed-off-by: Paolo Bonzini <>

d7331bed 11/14/2012 07:19 pm Stefan Hajnoczi

aio: rename AIOPool to AIOCBInfo

Now that AIOPool no longer keeps a freelist, it isn't really a "pool"
anymore. Rename it to AIOCBInfo and make it const since it no longer
needs to be modified.

Signed-off-by: Stefan Hajnoczi <>
Signed-off-by: Kevin Wolf <>

19d092cf 10/31/2012 11:38 am Paolo Bonzini

threadpool: do not take lock in event_notifier_ready

The ordering is:

worker thread                         consumer thread
-------------------------------------------------------------------
write ret event_notifier_test_and_clear...
d354c7ec 10/31/2012 11:37 am Paolo Bonzini

aio: add generic thread-pool facility

Add a generic thread-pool. The code is roughly based on posix-aio-compat.c,
with some changes, especially the following:

- use QemuSemaphore instead of QemuCond;

- separate the state of the thread from the return code of the worker...