VirtualBox

Changeset 45903 in vbox for trunk/include


Ignore:
Timestamp:
May 6, 2013 11:38:45 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
85529
Message:

memcache.h/.cpp: doc updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/memcache.h

    r28800 r45903  
    3838 *
    3939 * 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.
    4151 *
    4252 * @{
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette