Lines Matching refs:Trace
38 Trace* TraceImpl::StaticInstance(TraceCount inc, const TraceLevel level)
42 static Trace* volatile theTrace = NULL;
87 Trace* oldValue = theTrace;
90 // temporarily so that the trace can be safely deleted. If the lock
91 // was kept during the delete, e.g. creating and destroying the trace
94 // thread will trigger writing of trace messages.
115 // The trace has been destroyed by some other thread. Rollback.
135 // updated just yet (that's done when the trace is created).
150 // Create trace and let whichever thread finishes first assign its local
153 Trace* newTrace = TraceImpl::CreateTrace();
156 Trace* oldValue = (Trace*)InterlockedExchangePointer(
170 Trace* oldValue = (Trace*)InterlockedExchangePointer(
182 void Trace::CreateTrace()
187 void Trace::ReturnTrace()
197 Trace* TraceImpl::CreateTrace()
213 kHighestPriority, "Trace")),
612 "WARNING MISSING TRACE MESSAGES\n", 32);
872 WebRtc_Word32 Trace::SetLevelFilter(WebRtc_UWord32 filter)
878 WebRtc_Word32 Trace::LevelFilter(WebRtc_UWord32& filter)
884 WebRtc_Word32 Trace::TraceFile(WebRtc_Word8 fileName[FileWrapper::kMaxFileNameSize])
886 TraceImpl* trace = TraceImpl::GetTrace();
887 if(trace)
889 int retVal = trace->TraceFileImpl(fileName);
896 WebRtc_Word32 Trace::SetTraceFile(const WebRtc_Word8* fileName,
899 TraceImpl* trace = TraceImpl::GetTrace();
900 if(trace)
902 int retVal = trace->SetTraceFileImpl(fileName, addFileCounter);
909 WebRtc_Word32 Trace::SetTraceCallback(TraceCallback* callback)
911 TraceImpl* trace = TraceImpl::GetTrace();
912 if(trace)
914 int retVal = trace->SetTraceCallbackImpl(callback);
921 void Trace::Add(const TraceLevel level, const TraceModule module,
925 TraceImpl* trace = TraceImpl::GetTrace(level);
926 if(trace)
928 if(trace->TraceCheck(level))
944 trace->AddImpl(level, module, id, buff);