List:Falcon Storage Engine« Previous MessageNext Message »
From:Jim Starkey Date:November 4 2008 5:52pm
Subject:Thread Cache Memory Manager
View as plain text  
Here is the current rev of the thread cache MemMgr.  Commenting out the 
#include "MemThreadCache.h" in MemMgr.cpp will cause it to revert to a 
centralized version.

To avoid leaks, an instance of ThreadCleanup should be stack local 
somewhere near the base frame for the stack.  The destructor will 
automatically return any remaining memory to the central pool.  
Alternatively, a call to MemMgr::purgeThreadCache() will do the same thing.

-- 
Jim Starkey
President, NimbusDB, Inc.
978 526-1376


Attachment: [application/x-zip-compressed] SoMemMgr.zip
Thread
Thread Cache Memory ManagerJim Starkey4 Nov