Example #1
0
void KPR_application_purge(xsMachine *the)
{
	KprApplication self = kprGetHostData(xsThis, this, application);
	FskInstrumentedItemSendMessageNormal(self, kprInstrumentedContentBeginCollect, self);
	xsCollectGarbage();
	FskInstrumentedItemSendMessageNormal(self, kprInstrumentedContentEndCollect, self);
	KprContextPurge(self, false);
}
Example #2
0
void KPR_host_purge(xsMachine* the)
{
	KprHost self = xsGetHostData(xsThis);
	KprApplication application = (KprApplication)self->first;
	xsBeginHostSandboxCode(application->the, NULL);
	{
		FskInstrumentedItemSendMessageNormal(self, kprInstrumentedContentBeginCollect, self);
		xsCollectGarbage();
		FskInstrumentedItemSendMessageNormal(self, kprInstrumentedContentEndCollect, self);
	}
	xsEndHostSandboxCode();
	KprContextPurge(application, false);
}
Example #3
0
void gc(xsMachine* the)
{
	xsCollectGarbage();
}