Added compile time support for direct tracing.
Review URL: https://webrtc-codereview.appspot.com/469006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@1985 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
06e722ae77
commit
27fe1b702e
@ -429,8 +429,14 @@ WebRtc_Word32 TraceImpl::AddMessage(
|
||||
void TraceImpl::AddMessageToList(
|
||||
const char traceMessage[WEBRTC_TRACE_MAX_MESSAGE_SIZE],
|
||||
const WebRtc_UWord16 length,
|
||||
const TraceLevel level)
|
||||
{
|
||||
const TraceLevel level) {
|
||||
#ifdef WEBRTC_DIRECT_TRACE
|
||||
if (_callback) {
|
||||
_callback->Print(level, traceMessage, length);
|
||||
}
|
||||
return;
|
||||
#endif
|
||||
|
||||
CriticalSectionScoped lock(_critsectArray);
|
||||
|
||||
if(_nextFreeIdx[_activeQueue] >= WEBRTC_TRACE_MAX_QUEUE)
|
||||
|
Loading…
Reference in New Issue
Block a user