You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
qWarning() << "[EEGoSports::start] EEGoSports thread could not be started - Either the device is turned off (check your OS device manager) or the driver DLL (EEGO-SDK.dll) is not installed in one of the monitored dll path." << endl;
qWarning() << "Plugin GUSBAmp - ERROR - GUSBAmpProducer thread could not be started - Either the device is turned off (check your OS device manager) or the driver DLL (GUSBAmpSDK.dll / GUSBAmpSDK32bit.dll) is not installed in the system32 / SysWOW64 directory" << endl;
@@ -225,8 +227,11 @@ bool GUSBAmp::start()
225
227
boolGUSBAmp::stop()
226
228
{
227
229
// Stop this (consumer) thread first
228
-
requestInterruption();
229
-
wait(500);
230
+
m_bProcessOutput = false;
231
+
232
+
if(m_OutputProcessingThread.joinable()){
233
+
m_OutputProcessingThread.join();
234
+
}
230
235
231
236
//Stop the producer thread first
232
237
m_pGUSBAmpProducer->stop();
@@ -271,7 +276,7 @@ void GUSBAmp::run()
271
276
qint32 size = 0;
272
277
MatrixXf matValue;
273
278
274
-
while(!isInterruptionRequested()) {
279
+
while(m_bProcessOutput) {
275
280
//pop matrix only if the producer thread is running
0 commit comments