diff options
author | Ballista Milsim <ballista.milsim@gmail.com> | 2020-03-21 12:39:57 +0100 |
---|---|---|
committer | Ballista Milsim <ballista.milsim@gmail.com> | 2020-03-21 12:39:57 +0100 |
commit | cf89cd0ee392a73c7b92d0220b3963f1901908ae (patch) | |
tree | cf27da201041b870f1668b24b3c88506c9e80523 /tracker-tobii/thread.hpp | |
parent | 77885b4d65f49fd220d2426c01cd336402b86c60 (diff) |
Fixes according to code review.
Diffstat (limited to 'tracker-tobii/thread.hpp')
-rw-r--r-- | tracker-tobii/thread.hpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tracker-tobii/thread.hpp b/tracker-tobii/thread.hpp index a2838272..d311db87 100644 --- a/tracker-tobii/thread.hpp +++ b/tracker-tobii/thread.hpp @@ -14,12 +14,11 @@ class tobii_thread : public QThread Q_OBJECT void run() override; -signals: - void tobii_error_signal(QString error_message); - void tobii_ready_signal(); - public: - tobii_thread(); + tobii_thread() + { + head_pose = new tobii_head_pose_t(); + } ~tobii_thread() override; tobii_head_pose_t* head_pose; @@ -28,10 +27,9 @@ private: tobii_api_t* api; tobii_device_t* device; - const unsigned int retries = 300; - const unsigned int interval = 100; - std::atomic<bool> exit_thread = false; + static constexpr unsigned int retries = 300; + static constexpr unsigned int interval = 100; - void tobii_error_signal_impl(QString error_message); - void tobii_ready_signal_impl(); + QString error_last = ""; + std::atomic<bool> exit_thread = false; }; |