From d9261bdb05cd0863a2c3747c812871dbb851646e Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Wed, 14 Aug 2019 11:45:34 +0200 Subject: Replace signal-based abort handling by query-based handling The abort handling is currently only used to process Ctrl-C from Matlab. Since Matlab R2019a, it appears that calling utIsInterruptPending() from a thread other than the main thread will crash. The previous approach of checking utIsInterruptPending() in a thread, and then signalling the running algorithm was therefore broken. --- include/astra/AsyncAlgorithm.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'include/astra/AsyncAlgorithm.h') diff --git a/include/astra/AsyncAlgorithm.h b/include/astra/AsyncAlgorithm.h index 0e43e67..6cb84bb 100644 --- a/include/astra/AsyncAlgorithm.h +++ b/include/astra/AsyncAlgorithm.h @@ -80,10 +80,6 @@ public: */ bool isDone() const { return m_bDone; } - /** Signal abort to the wrapped algorithm. - */ - void signalAbort(); - protected: //< Has this class been initialized? bool m_bInitialized; -- cgit v1.2.3