forked from GerhardHoffmann/DCLibraries
		
	Add atomic<bool> variable m_coinAttached to check for state change:
send signal runProc_coinAttached only if state changes from false true.
This commit is contained in:
		@@ -15,6 +15,7 @@
 | 
			
		||||
#include <QDebug>
 | 
			
		||||
#include "datIf.h"
 | 
			
		||||
#include <QSharedMemory>
 | 
			
		||||
#include <atomic>
 | 
			
		||||
#include "sendWRcmd.h"
 | 
			
		||||
#include "controlBus.h"
 | 
			
		||||
#include "storeINdata.h"
 | 
			
		||||
@@ -35,6 +36,10 @@ class T_runProc : public QObject
 | 
			
		||||
 | 
			
		||||
    void restoreDeviceParameter(struct T_devices *deviceSettings);
 | 
			
		||||
 | 
			
		||||
#ifndef THIS_IS_CA_MASTER
 | 
			
		||||
    std::atomic_bool m_coinAttached{false};
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
private slots:
 | 
			
		||||
    void runProc_slotProcess(void);
 | 
			
		||||
    bool bl_performComplStart(void);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user