8 #include <condition_variable> 13 #include <nx/sdk/analytics/helpers/consuming_device_agent.h> 14 #include <nx/sdk/analytics/helpers/pixel_format.h> 15 #include <nx/sdk/analytics/helpers/object_metadata_packet.h> 18 #include "stub_analytics_plugin_diagnostic_events_ini.h" 21 namespace vms_server_plugins {
24 namespace diagnostic_events {
26 const std::string kGeneratePluginDiagnosticEventsFromDeviceAgentSetting =
27 "generatePluginDiagnosticEventsFromDeviceAgent";
36 virtual void doSetNeededMetadataTypes(
40 virtual std::string manifestString()
const override;
45 void eventThreadLoop();
46 void startEventThread();
47 void stopEventThread();
49 void processFrameMotion(
55 std::unique_ptr<std::thread> m_eventThread;
56 std::mutex m_eventThreadMutex;
57 std::condition_variable m_eventThreadCondition;
58 std::atomic<bool> m_terminated{
false};
60 struct DeviceAgentSettings
62 std::atomic<bool> generateEvents{
true};
65 DeviceAgentSettings m_deviceAgentSettings;
virtual nx::sdk::Result< const nx::sdk::ISettingsResponse * > settingsReceived() override
Definition: device_agent.cpp:61
Definition: consuming_device_agent.h:38
Definition: i_device_info.h:14
Definition: apple_utils.h:6
Definition: device_agent.h:29