From: Kevin Lewis Date: April 14 2009 10:33pm Subject: CycleManager suggestion List-Archive: http://lists.mysql.com/falcon/686 Message-Id: <49E50F4F.7070701@sun.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT 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);