mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Base: Make some items atomic
This commit is contained in:
parent
9f71e4af2c
commit
981538aa2a
@ -19,8 +19,8 @@ class Config {
|
||||
bool FirstLoad;
|
||||
bool ServerEnabled;
|
||||
uint16_t ServerPort;
|
||||
bool DebugEnabled;
|
||||
bool AlertsEnabled;
|
||||
std::atomic<bool> DebugEnabled;
|
||||
std::atomic<bool> AlertsEnabled;
|
||||
bool AuthRequired;
|
||||
QString ServerPassword;
|
||||
|
||||
|
@ -102,3 +102,8 @@ os_cpu_usage_info_t* GetCpuUsageInfo()
|
||||
{
|
||||
return _cpuUsageInfo;
|
||||
}
|
||||
|
||||
bool IsDebugMode()
|
||||
{
|
||||
return !_config || _config->DebugEnabled;
|
||||
}
|
@ -53,3 +53,5 @@ WebSocketServerPtr GetWebSocketServer();
|
||||
EventHandlerPtr GetEventHandler();
|
||||
|
||||
os_cpu_usage_info_t* GetCpuUsageInfo();
|
||||
|
||||
bool IsDebugMode();
|
||||
|
Loading…
Reference in New Issue
Block a user