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

Function xnLogClose

Source/OpenNI/XnLog.cpp:632–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630}
631
632XN_C_API XnStatus xnLogClose()
633{
634 // notify all writers (while allowing them to unregister themselves)
635 LogData& logData = LogData::GetInstance();
636
637 XnAutoCSLocker locker(logData.hLock);
638 XnLogWritersList::ConstIterator it = logData.writers.Begin();
639 while (it != logData.writers.End())
640 {
641 XnLogWritersList::ConstIterator curr = it;
642 ++it;
643
644 const XnLogWriter* pWriter = *curr;
645 pWriter->OnClosing(pWriter->pCookie);
646 }
647
648 logData.strLogDir[0] = '\0';
649 logData.strSessionTimestamp[0] = '\0';
650 logData.SetMinSeverityGlobally(XN_LOG_SEVERITY_NONE);
651
652 // turn off all dumps
653 xnDumpSetMaskState(XN_LOG_MASK_ALL, FALSE);
654
655 return XN_STATUS_OK;
656}
657
658XN_C_API XnStatus xnLogSetConsoleOutput(XnBool bConsoleOutput)
659{

Callers 1

DllMainFunction · 0.85

Calls 5

xnDumpSetMaskStateFunction · 0.85
BeginMethod · 0.45
EndMethod · 0.45
OnClosingMethod · 0.45

Tested by

no test coverage detected