| iMatix home page | << | < | > | >> |
![]() Version 1.91 |
#include "sflmem.h" void mem_commit_ ( MEMTRN *trn, const char *filename, /* Name of source file making call */ word lineno /* Line number in calling source */ )
Commits all blocks allocated to a transaction.
{ LIST *ptr; # if (defined (MEM_TRACE)) if (filename) trace ("%s (%d): commit transaction", filename, 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); }
| << | < | > | >> |
![]() |