MCPcopy Create free account
hub / github.com/DFHack/dfhack / unregisterCategory

Method unregisterCategory

library/Debug.cpp:55–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void DebugManager::unregisterCategory(DebugCategory& cat)
56{
57 DEBUG(debug) << "unregister DebugCategory '" << cat.category()
58 << "' from '" << cat.plugin()
59 << "' allowed " << cat.allowed() << std::endl;
60 std::lock_guard<std::mutex> guard(access_mutex_);
61 auto iter = std::find(begin(), end(), &cat);
62 std::swap(*iter, back());
63 pop_back();
64 categorySignal(CAT_REMOVE, cat);
65}
66
67DebugRegisterBase::DebugRegisterBase(DebugCategory* cat)
68{

Callers 1

unregisterMethod · 0.80

Calls 5

beginFunction · 0.85
categoryMethod · 0.80
pluginMethod · 0.80
allowedMethod · 0.80
findFunction · 0.50

Tested by

no test coverage detected