Statistics
| Branch: | Revision:

root / thread-pool.h @ c28fa5a0

History | View | Annotate | Download (955 Bytes)

# Date Author Comment
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...