rem: char stats[200];
context: NsCleanupThread(Thread *thisPtr){    char stats[200];    NsCleanupTls(thisPtr);    if (thisPtr->pool != NULL) {	Ns_PoolDestroy(thisPtr->pool);	thisPtr->pool = NULL;    }    if (nsMemPools) {        NsPoolFlush(&thisPtr->memPool);    }    Ns_MutexLock(&lock);    if (thisPtr->flags & NS_THREAD_DETACHED) {	FreeThread(thisPtr);    } else {	thisPtr->arg = NULL;	thisPtr->flags |= NS_THREAD_EXITED;	Ns_CondBroadcast(&cond);    }    Ns_MutexUnlock(&lock);}