Exemplo n.º 1
0
TraceThreadListener::~TraceThreadListener()
{
  traceWrite();
  traceFlush();
  traceClose();
  
  ProcessListener.deregisterThreadListener(ThreadID);
}
Exemplo n.º 2
0
Arquivo: trace.c Projeto: q3k/ski
/* returns NO if enabling tracing before setting the trace file */
BOOL setTraceEnb(BOOL enb)
{
    if (enb) {
	if (!tracef)
	    return NO;
	preInst |= PRE_TRACE;
	traceEnb = YES;
    } else {
	preInst &= ~PRE_TRACE;
	traceEnb = NO;
	traceFlush(tracef);
    }
    return YES;
}