41 void initListenerThread_();
42 virtual void postFocus_(
bool focused )
override;
44 void processAction_(
const Action& action );
46 bool findAndAttachDevice_(
bool verbose );
49 hid_device* device_ =
nullptr;
59 void process(
const Action& action );
62 mutable std::mutex mutex_;
63 std::unique_ptr<Device> device_;
67 std::thread listenerThread_;
68 std::atomic_bool terminateListenerThread_{
false };
69 std::mutex syncThreadMutex_;
70 std::condition_variable cv_;
71 DataPacketRaw dataPacket_;
72 int packetLength_ = 0;
73 std::atomic_bool active_{
false };
class to subscribe on PostFocusSingal
Definition MRViewerEventsListener.h:400