1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-04 06:54:39 -04:00

BladerRF2 input support. Transfer thread ownership before closing the source if it has the allocated thread

This commit is contained in:
f4exb
2018-09-25 14:31:57 +02:00
parent 5f2a4e8c83
commit fcaf22418d
2 changed files with 26 additions and 4 deletions
@@ -101,7 +101,7 @@ public:
virtual bool start();
virtual void stop();
BladeRF2InputThread *getThread() { return m_thread; }
void resetThread() { m_thread = 0; }
void setThread(BladeRF2InputThread *thread) { m_thread = thread; }
virtual QByteArray serialize() const;
virtual bool deserialize(const QByteArray& data);
@@ -155,6 +155,7 @@ private:
bool openDevice();
void closeDevice();
BladeRF2InputThread *findThread();
void moveThreadToBuddy();
bool applySettings(const BladeRF2InputSettings& settings, bool force = false);
void webapiFormatDeviceSettings(SWGSDRangel::SWGDeviceSettings& response, const BladeRF2InputSettings& settings);
void webapiFormatDeviceReport(SWGSDRangel::SWGDeviceReport& response);