Re: [PATCH] thread-pool: signal "request_cond" while locked

2023-07-18 Thread Stefan Hajnoczi
On Fri, Jul 14, 2023 at 04:27:20PM +0100, Anthony PERARD wrote: > From: Anthony PERARD > > thread_pool_free() might have been called on the `pool`, which would > be a reason for worker_thread() to quit. In this case, > `pool->request_cond` is been destroyed. > > If worker_thread() didn't managed

[PATCH] thread-pool: signal "request_cond" while locked

2023-07-14 Thread Anthony PERARD via
From: Anthony PERARD thread_pool_free() might have been called on the `pool`, which would be a reason for worker_thread() to quit. In this case, `pool->request_cond` is been destroyed. If worker_thread() didn't managed to signal `request_cond` before it been destroyed by thread_pool_free(), we g