Handle assertion in other threads (#496)
To solve the problem, qFatal
should only be called from the main thread.
Thus, in case of failed assertion inside a thread, we must throw a normal exception up the hierarchy until the main thread is reached.
In order not to run qFatal
in ASSERT
, we check the threadedAssertion
flag, which must be set to true
before starting multi-threaded calculations.
This fixes two places of three in #496 (closed):
-
single calculation -
fit
Edited by Mikhail Svechnikov