From: Jim Starkey Date: April 15 2009 8:44pm Subject: Re: CycleManager suggestion List-Archive: http://lists.mysql.com/falcon/689 Message-Id: <49E6472A.3030100@nimbusdb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Kevin Lewis wrote: > Jim, Do you think this is a good idea to do in the CycleManager? > > while (!thread->shutdownInProgress) > { > + // Only sleep if there is nothing to do. > + if (!(recordVersionPurgatory || recordPurgatory || > + valuePurgatory || bufferPurgatory)) > thread->sleep(CYCLE_SLEEP); > Beats me. In one case you speed time sleeping, in the other you spend time waiting for the locks to go away. I suppose your scheme would get memory released sooner, which isn't a bad thing. -- Jim Starkey President, NimbusDB, Inc. 978 526-1376