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 Manager | Jim Starkey | 4 Nov |