[sheepdog] [PATCH 3/4] work: let worker threads start with pipe()

2013-10-22 Thread Hitoshi Mitake
Current work.c uses mutex for starting worker threads (startup_lock). The intention of the code is hard to understand. In addition, the code doesn't destroy newly created threads when it fails creating or growing work queues. This patch refactors the code and implement correct cleaning of

Re: [sheepdog] [PATCH 3/4] work: let worker threads start with pipe()

2013-10-22 Thread Hitoshi Mitake
At Tue, 22 Oct 2013 15:43:52 +0800, Liu Yuan wrote: On Tue, Oct 22, 2013 at 04:13:12PM +0900, Hitoshi Mitake wrote: Current work.c uses mutex for starting worker threads (startup_lock). The intention of the code is hard to understand. In addition, the code doesn't destroy newly created