treelite
Public Member Functions | List of all members
treelite::OMPException Class Reference

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

#include <omp_exception.h>

Collaboration diagram for treelite::OMPException:
Collaboration graph

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. More...
 
void Rethrow ()
 should be called from the main thread to rethrow the exception More...
 

Detailed Description

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

Member Function Documentation

◆ Rethrow()

void treelite::OMPException::Rethrow ( )
inline

should be called from the main thread to rethrow the exception

◆ Run()

template<typename Function , typename... Parameters>
void treelite::OMPException::Run ( Function  f,
Parameters...  params 
)
inline

Parallel OMP blocks should be placed within Run to save exception.


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