From: Ryan Davis Date: 2009-10-21T06:31:28+09:00 Subject: Re: memory leak On Oct 20, 2009, at 07:29 , Rob Doug wrote: >> I almost always structure my threads as a pool of workers pulling >> from >> a queue of tasks: > > actually I had this kind of code at first: yeah. I don't care. it is still really obfuscated. Switch to a simple pool of workers pulling tasks out of a queue. Don't do redo for no reason. Don't do crazy stuff.