Changeset 1872 for trunk/src/kmk/misc.c


Ignore:
Timestamp:
Oct 17, 2008, 2:05:27 AM (17 years ago)
Author:
bird
Message:

incdep: use an allocation cache for the records to reduce xmalloc and free calls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/misc.c

    r1864 r1872  
    12181218}
    12191219
     1220/* Terminate an alloc cache, free all the memory it contains. */
     1221void
     1222alloccache_term (struct alloccache *cache,
     1223                 void (*term_free)(void *term_arg, void *ptr, unsigned int size), void *term_arg)
     1224{
     1225    cache->size = 0;
     1226    (void)term_free;
     1227    (void)term_arg;
     1228    /* FIXME: Implement memory segment tracking and cleanup. */
     1229}
     1230
    12201231/* Joins to caches, unlinking the 2nd one. */
    12211232void
Note: See TracChangeset for help on using the changeset viewer.