Statistics
| Branch: | Revision:

root / thread-pool.c @ c28fa5a0

History | View | Annotate | Download (7.6 kB)

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