MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / get

Method get

LogManager.cpp:20–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20LogManager* LogManager::get()
21{
22 static LogManager* _instance = nullptr;
23 static std::mutex instance_mutex;
24 std::lock_guard<std::mutex> grd(instance_mutex);
25
26 /*-------------------------------------------------*\
27 | Create a new instance if one does not exist |
28 \*-------------------------------------------------*/
29 if(!_instance)
30 {
31 _instance = new LogManager();
32 }
33
34 return _instance;
35}
36
37unsigned int LogManager::getLoglevel()
38{

Callers 2

RefreshMethod · 0.45
RefreshMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected