Re: [libvirt] [PATCH] rpc: Initialize a worker pool for max_workers=0 as well

2018-08-15 Thread Marc Hartmayer
On Tue, Aug 14, 2018 at 06:19 PM +0200, John Ferlan wrote: > On 08/07/2018 07:38 AM, Marc Hartmayer wrote: >> Semantically, there is no difference between an uninitialized worker >> pool and an initialized worker pool with zero workers. Let's allow the >> worker pool to be initialized for max_work

Re: [libvirt] [PATCH] rpc: Initialize a worker pool for max_workers=0 as well

2018-08-14 Thread John Ferlan
On 08/07/2018 07:38 AM, Marc Hartmayer wrote: > Semantically, there is no difference between an uninitialized worker > pool and an initialized worker pool with zero workers. Let's allow the > worker pool to be initialized for max_workers=0 as well then which > makes the API more symmetric and si

[libvirt] [PATCH] rpc: Initialize a worker pool for max_workers=0 as well

2018-08-07 Thread Marc Hartmayer
Semantically, there is no difference between an uninitialized worker pool and an initialized worker pool with zero workers. Let's allow the worker pool to be initialized for max_workers=0 as well then which makes the API more symmetric and simplifies code. Validity of the worker pool is delegated t