Emanuele Giuseppe Esposito aef04fc790 thread-pool: avoid passing the pool parameter every time
thread_pool_submit_aio() is always called on a pool taken from
qemu_get_current_aio_context(), and that is the only intended
use: each pool runs only in the same thread that is submitting
work to it, it can't run anywhere else.

Therefore simplify the thread_pool_submit* API and remove the
ThreadPool function parameter.

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Message-Id: <20230203131731.851116-5-eesposit@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2023-04-25 13:17:28 +02:00
..
2023-03-20 12:43:50 +01:00
2023-03-20 12:43:50 +01:00
2022-12-20 17:09:41 -08:00
2022-04-21 17:03:51 +04:00
2023-03-08 00:37:48 +01:00
2023-03-28 15:23:10 -07:00
2023-04-24 11:29:00 +02:00
2023-03-13 15:23:37 +04:00
2022-06-29 10:56:12 +03:00
2023-02-02 11:48:20 +00:00
2023-03-28 15:23:10 -07:00
2022-03-04 18:14:40 +01:00
2021-04-01 15:27:44 +04:00