このページを編集する際は、編集に関する方針に従ってください。
void MemoryContextReset(MemoryContext context)
{
AssertArg(MemoryContextIsValid(context));
/* save a function call in common case where there are no children */ if (context->firstchild != NULL) MemoryContextResetChildren(context);
(*context->methods->reset) (context);
}
/* * MemoryContextReset * Release all space allocated within a context and its descendants, * but don't delete the contexts themselves. * * The type-specific reset routine handles the context itself, but we * have to do the recursion for the children. */
更新日 | 更新者 | 更新内容 |