Changeset 45903 in vbox for trunk/include
- Timestamp:
- May 6, 2013 11:38:45 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 85529
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/memcache.h
r28800 r45903 38 38 * 39 39 * Optimized allocation, initialization, freeing and destruction of memory 40 * objects of the same kind and size. 40 * objects of the same kind and size. Objects are constructed once, then 41 * allocated and freed one or more times, until finally destructed together with 42 * the cache (RTMemCacheDestroy). It's expected behavior, even when pfnCtor is 43 * NULL, that the user will be store information that should be persistent 44 * across RTMemCacheFree calls. 45 * 46 * The objects are zeroed prior to calling pfnCtor. For obvious reasons, the 47 * objects are not touched by the cache after that, so that RTMemCacheAlloc will 48 * return the object in the same state as when it as handed to RTMemCacheFree. 49 * 50 * @todo A callback for the reuse (at alloc time) might be of interest. 41 51 * 42 52 * @{
Note:
See TracChangeset
for help on using the changeset viewer.