| iMatix home page
| << | < | > | >>
SFL Logo SFL
Version 2.11

 

mem_commit_

#include "sflmem.h"
void
mem_commit_ (
    MEMTRN *trn,
    const char *filename,               /*  Name of source file making call  */
    size_t lineno                       /*  Line number in calling source    */
)

Synopsis

Commits all blocks allocated to a given transaction.

Source Code - (sflmem.c)

{
    LIST
       *ptr;

#   if (defined (MEM_TRACE))
    trace ("%s (%ld): commit transaction",
           filename? filename: "-", (long) lineno);
#   endif

    ptr = &trn-> memhdr;
    if (!list_empty (ptr))              /*  Are there any blocks to commit?  */
      {
        list_relink_before (ptr,        /*  Relink list into main list       */
                            &mem_list. memhdr);
        list unlink (ptr);
      }

    mem_del_trans (trn);
}

| << | < | > | >> iMatix Copyright © 1996-2000 iMatix Corporation