MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / xnLogWriteNoEntryImplV

Function xnLogWriteNoEntryImplV

Source/OpenNI/XnLog.cpp:805–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

803}
804
805void xnLogWriteNoEntryImplV(const XnChar* csFormat, va_list args)
806{
807 const XnUInt32 nMaxMessageSize = 1024;
808 XnChar csMessage[nMaxMessageSize+1];
809 XnUInt32 nChars;
810 xnOSStrFormatV(csMessage, nMaxMessageSize, &nChars, csFormat, args);
811
812 LogData& logData = LogData::GetInstance();
813 XnAutoCSLocker locker(logData.hLock);
814 for (XnLogWritersList::ConstIterator it = logData.writers.Begin(); it != logData.writers.End(); ++it)
815 {
816 const XnLogWriter* pWriter = *it;
817 pWriter->WriteUnformatted(csMessage, pWriter->pCookie);
818 }
819}
820
821void xnLogWriteBinaryDataImplV(const XnChar* strMask, XnLogSeverity nSeverity, const XnChar* csFile, XnUInt32 nLine, XnUChar* pBinData, XnUInt32 nDataSize, const XnChar* csFormat, va_list args)
822{

Callers 1

xnLoggerWriteNoEntryFunction · 0.85

Calls 4

xnOSStrFormatVFunction · 0.50
BeginMethod · 0.45
EndMethod · 0.45
WriteUnformattedMethod · 0.45

Tested by

no test coverage detected