Treelite
Public Member Functions | List of all members
OMPException Class Reference

OMP Exception class catches, saves and rethrows exception from OMP blocks. More...

#include <omp_exception.h>

Public Member Functions

template<typename Function , typename... Parameters>
void Run (Function f, Parameters... params)
 Parallel OMP blocks should be placed within Run to save exception.
 
void Rethrow ()
 should be called from the main thread to rethrow the exception
 

Detailed Description

OMP Exception class catches, saves and rethrows exception from OMP blocks.

Definition at line 19 of file omp_exception.h.


The documentation for this class was generated from the following file: