|
| iMatix home page | << | < | > | >> |
SFLVersion 2.11 |
#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 */
)
Commits all blocks allocated to a given transaction.
{
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);
}
| | << | < | > | >> |
|