Debiian advises against use of exit().
We us it generally to signal start-up problems. (missing files, syntax errors in the configuration and such)
These can be converted to exceptions. And maybe should.
One problem is already clear: These exceptions must be caught INSIDE the OpenMP thread where the exception is thrown. So take care!
spec 3.0 of OpenMP say reason that:
"A throw executed inside a parallel region must cause execution to resume within the same parallel region,
and the same thread that threw the exception C/C++ must catch it.."
@proycon : I will look into this.
Debiian advises against use of exit().
We us it generally to signal start-up problems. (missing files, syntax errors in the configuration and such)
These can be converted to exceptions. And maybe should.
One problem is already clear: These exceptions must be caught INSIDE the OpenMP thread where the exception is thrown. So take care!
@proycon : I will look into this.