MCPcopy Create free account
hub / github.com/assimp/assimp / aiDetachAllLogStreams

Function aiDetachAllLogStreams

code/Common/Assimp.cpp:436–454  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

434
435// ------------------------------------------------------------------------------------------------
436ASSIMP_API void aiDetachAllLogStreams(void) {
437 ASSIMP_BEGIN_EXCEPTION_REGION();
438#ifndef ASSIMP_BUILD_SINGLETHREADED
439 std::lock_guard<std::mutex> lock(gLogStreamMutex);
440#endif
441 Logger *logger(DefaultLogger::get());
442 if (nullptr == logger) {
443 return;
444 }
445
446 for (LogStreamMap::iterator it = gActiveLogStreams.begin(); it != gActiveLogStreams.end(); ++it) {
447 logger->detachStream(it->second);
448 delete it->second;
449 }
450 gActiveLogStreams.clear();
451 DefaultLogger::kill();
452
453 ASSIMP_END_EXCEPTION_REGION(void);
454}
455
456// ------------------------------------------------------------------------------------------------
457ASSIMP_API void aiEnableVerboseLogging(aiBool d) {

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 5

detachStreamMethod · 0.80
getFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected