src/backend/utils/mmgr/mcxt.c
static void
MemoryContextCallResetCallbacks(MemoryContext context)
{
	MemoryContextCallback *cb;

	/*
	 * We pop each callback from the list before calling.  That way, if an
	 * error occurs inside the callback, we won't try to call it a second time
	 * in the likely event that we reset or delete the context later.
	 */
	while ((cb = context->reset_cbs) != NULL)
	{
		context->reset_cbs = cb->next;
		cb->func(cb->arg);
	}
}
/*
 * MemoryContextCallResetCallbacks
 *		Internal function to call all registered callbacks for context.
 */
MemoryContextCallResetCallbacks
Internal function to call all registered callbacks for context.
MemoryContextCallResetCallbacks Internal function to call all registered callbacks for context .
static void
MemoryContextCallResetCallbacks(MemoryContext context)
{
	MemoryContextCallback *cb;
	while ((cb = context->reset_cbs) != NULL)
	{
		context->reset_cbs = cb->next;
		cb->func(cb->arg);
	}
}
static void MemoryContextCallResetCallbacks ( MemoryContext context ) { MemoryContextCallback * cb ; while ( ( cb = context -> reset_cbs ) != NULL ) { context -> reset_cbs = cb -> next ; cb -> func ( cb -> arg ) ; } }
MemoryContextCallResetCallbacks
              Internal function to call all registered callbacks for context.
MemoryContextCallResetCallbacks Internal function to call all registered callbacks for context .
/*
	 * We pop each callback from the list before calling.  That way, if an
	 * error occurs inside the callback, we won't try to call it a second time
	 * in the likely event that we reset or delete the context later.
	 */