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 FirstLoad;
|
||||||
bool ServerEnabled;
|
bool ServerEnabled;
|
||||||
uint16_t ServerPort;
|
uint16_t ServerPort;
|
||||||
bool DebugEnabled;
|
std::atomic<bool> DebugEnabled;
|
||||||
bool AlertsEnabled;
|
std::atomic<bool> AlertsEnabled;
|
||||||
bool AuthRequired;
|
bool AuthRequired;
|
||||||
QString ServerPassword;
|
QString ServerPassword;
|
||||||
|
|
||||||
|
@ -102,3 +102,8 @@ os_cpu_usage_info_t* GetCpuUsageInfo()
|
|||||||
{
|
{
|
||||||
return _cpuUsageInfo;
|
return _cpuUsageInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool IsDebugMode()
|
||||||
|
{
|
||||||
|
return !_config || _config->DebugEnabled;
|
||||||
|
}
|
@ -53,3 +53,5 @@ WebSocketServerPtr GetWebSocketServer();
|
|||||||
EventHandlerPtr GetEventHandler();
|
EventHandlerPtr GetEventHandler();
|
||||||
|
|
||||||
os_cpu_usage_info_t* GetCpuUsageInfo();
|
os_cpu_usage_info_t* GetCpuUsageInfo();
|
||||||
|
|
||||||
|
bool IsDebugMode();
|
||||||
|
Loading…
Reference in New Issue
Block a user