Esempio n. 1
0
/* 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);
}
Esempio n. 2
0
PTErr_t
	KpTermProcess (void)
{
processGlobals_p	pGP;

	pGP = loadProcessGlobals();
	if (pGP == NULL) {
		return KCP_FAILURE;
	}

	KpThreadMemUnlock (&theRootID, KPPROCMEM);
	KpThreadMemDestroy (&theRootID, KPPROCMEM);

	return (KCP_SUCCESS);
}