|
|
|
|
@ -19,6 +19,7 @@
@@ -19,6 +19,7 @@
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#include <QDebug> |
|
|
|
|
#include <QMutexLocker> |
|
|
|
|
#include <QNetworkReply> |
|
|
|
|
#include <QBuffer> |
|
|
|
|
|
|
|
|
|
@ -424,6 +425,10 @@ void SoapySDROutput::moveThreadToBuddy()
@@ -424,6 +425,10 @@ void SoapySDROutput::moveThreadToBuddy()
|
|
|
|
|
|
|
|
|
|
bool SoapySDROutput::start() |
|
|
|
|
{ |
|
|
|
|
// Buddy lists can be changed in the GUI thread, but are accessed here (and in functions called from here)
|
|
|
|
|
// in the device engine thread. Lock before any of our own mutexes, to keep a consistent lock order.
|
|
|
|
|
QMutexLocker buddiesLocker(&DeviceAPI::getBuddiesMutex()); |
|
|
|
|
|
|
|
|
|
// There is a single thread per physical device (Tx side). This thread is unique and referenced by a unique
|
|
|
|
|
// buddy in the group of sink buddies associated with this physical device.
|
|
|
|
|
//
|
|
|
|
|
@ -570,6 +575,10 @@ bool SoapySDROutput::start()
@@ -570,6 +575,10 @@ bool SoapySDROutput::start()
|
|
|
|
|
|
|
|
|
|
void SoapySDROutput::stop() |
|
|
|
|
{ |
|
|
|
|
// Buddy lists can be changed in the GUI thread, but are accessed here (and in functions called from here)
|
|
|
|
|
// in the device engine thread. Lock before any of our own mutexes, to keep a consistent lock order.
|
|
|
|
|
QMutexLocker buddiesLocker(&DeviceAPI::getBuddiesMutex()); |
|
|
|
|
|
|
|
|
|
// This stop method is responsible for managing the thread and channel disabling when the streaming of
|
|
|
|
|
// a Tx channel is stopped
|
|
|
|
|
//
|
|
|
|
|
|