added destructor in RsTickingThread calling for fullstop, which prevents the crash due to threads being killed when still running

This commit is contained in:
csoler 2019-08-30 21:44:05 +02:00
parent a51259beb5
commit 7d9db1fc22
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C
2 changed files with 5 additions and 0 deletions

View File

@ -236,6 +236,10 @@ RsTickingThread::RsTickingThread()
#endif
}
RsTickingThread::~RsTickingThread()
{
fullstop();
}
void RsSingleJobThread::runloop()
{
run() ;

View File

@ -287,6 +287,7 @@ class RsTickingThread: public RsThread
{
public:
RsTickingThread();
virtual ~RsTickingThread();
void shutdown();
void fullstop();