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

Method registerCategory

library/Debug.cpp:45–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43DBG_DECLARE(core,debug);
44
45void DebugManager::registerCategory(DebugCategory& cat)
46{
47 DEBUG(debug) << "register DebugCategory '" << cat.category()
48 << "' from '" << cat.plugin()
49 << "' allowed " << cat.allowed() << std::endl;
50 std::lock_guard<std::mutex> guard(access_mutex_);
51 push_back(&cat);
52 categorySignal(CAT_ADD, cat);
53}
54
55void DebugManager::unregisterCategory(DebugCategory& cat)
56{

Callers 1

DebugRegisterBaseMethod · 0.80

Calls 3

categoryMethod · 0.80
pluginMethod · 0.80
allowedMethod · 0.80

Tested by

no test coverage detected