Skip to content

avoid use of exit() #17

@kosloot

Description

@kosloot

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions