OGS
|
Initial code from https://stackoverflow.com/questions/11828539/elegant-exception-handling-in-openmp
Definition at line 17 of file ThreadException.h.
#include <ThreadException.h>
Public Member Functions | |
void | capture () |
void | rethrow () |
Private Attributes | |
std::exception_ptr | exception_ = nullptr |
std::mutex | lock_ |
|
inline |
Definition at line 20 of file ThreadException.h.
References exception_, and lock_.
Referenced by ProcessLib::Assembly::ParallelVectorMatrixAssembler::assembleWithJacobian().
|
inline |
Definition at line 26 of file ThreadException.h.
References exception_.
Referenced by ProcessLib::Assembly::ParallelVectorMatrixAssembler::assembleWithJacobian().
|
private |
Definition at line 35 of file ThreadException.h.
|
private |
Definition at line 36 of file ThreadException.h.
Referenced by capture().