/* abort the current PT chaining function */ void clearChain ( chainState_p cS) { PTCheckOut (cS->currentPT); /* free the current PT */ KpMemSet (cS, 0, sizeof (chainState_t)); /* no chaining active */ KpThreadMemDestroy (&theRootID, KPTHREADMEM); }
PTErr_t KpTermProcess (void) { processGlobals_p pGP; pGP = loadProcessGlobals(); if (pGP == NULL) { return KCP_FAILURE; } KpThreadMemUnlock (&theRootID, KPPROCMEM); KpThreadMemDestroy (&theRootID, KPPROCMEM); return (KCP_SUCCESS); }