Ejemplo n.º 1
0
void fx_setTimeoutRelease(const void *info)
{
	txTimeoutData* data = (txTimeoutData*)info;
	fxForget(data->the, &(data->function));
	fxForget(data->the, &(data->argument));
	c_free(data);
}
Ejemplo n.º 2
0
static void KprPromiseTargetDispose(void* it)
{
	KprPromiseTarget self = it;
	fxForget(self->the, &self->reject);
	fxForget(self->the, &self->resolve);
	FskMemPtrDispose(self);
}
Ejemplo n.º 3
0
void fxRemember(txMachine* the, txSlot* theSlot)
{
	txSlot* aHeap;
	txSlot* aLimit;
	if ((the->stack <= theSlot) && (theSlot < the->stackTop)) {
		return;
	}
	aHeap = the->firstHeap;
	while (aHeap) {
		aLimit = aHeap->value.reference;
		if ((aHeap < theSlot) && (theSlot < aLimit)) {
			return;
		}
		aHeap = aHeap->next;
	}
	fxForget(the, theSlot);
	theSlot->next = the->cRoot;
	the->cRoot = theSlot;
}
Ejemplo n.º 4
0
void KprFunctionTargetDispose(void* it)
{
    KprFunctionTarget self = it;
    fxForget(self->the, &self->slot);
    FskMemPtrDispose(self);
}