History | View | Annotate | Download (7.6 kB)
threadpool: do not take lock in event_notifier_ready
The ordering is:
worker thread consumer thread ------------------------------------------------------------------- write ret event_notifier_test_and_clear...
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...