summaryrefslogtreecommitdiffstats
path: root/src/Algorithm.cpp
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2019-08-14 11:45:34 +0200
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2019-08-14 11:45:34 +0200
commitd9261bdb05cd0863a2c3747c812871dbb851646e (patch)
treed1a81110e3fe213747a58f236e021a085417f663 /src/Algorithm.cpp
parent9a58b7451179ed512f975bc4c90fb71f172250b9 (diff)
downloadastra-d9261bdb05cd0863a2c3747c812871dbb851646e.tar.gz
astra-d9261bdb05cd0863a2c3747c812871dbb851646e.tar.bz2
astra-d9261bdb05cd0863a2c3747c812871dbb851646e.tar.xz
astra-d9261bdb05cd0863a2c3747c812871dbb851646e.zip
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.
Diffstat (limited to 'src/Algorithm.cpp')
-rw-r--r--src/Algorithm.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Algorithm.cpp b/src/Algorithm.cpp
index f6514fc..41da987 100644
--- a/src/Algorithm.cpp
+++ b/src/Algorithm.cpp
@@ -33,7 +33,7 @@ namespace astra {
//----------------------------------------------------------------------------------------
// Constructor
-CAlgorithm::CAlgorithm() : m_bShouldAbort(false), configCheckData(0) {
+CAlgorithm::CAlgorithm() : configCheckData(0) {
}
@@ -60,4 +60,5 @@ boost::any CAlgorithm::getInformation(std::string _sIdentifier)
return std::string("not found");
}
+
} // namespace astra