BoB robotics
The Brains on Board robotics library
BoBRobotics::BackgroundExceptionCatcher Class Reference

A wrapper for passing exceptions between threads (i.e. a background thread to the main one) More...

#include <background_exception_catcher.h>

Public Member Functions

void trapSignals (const std::unordered_set< int > &signals={ SIGSEGV, SIGINT, SIGFPE })
 Trap specified signals like exceptions.
 
void check () const
 Checks if the global exception is set and rethrows it if so.
 

Static Public Member Functions

static void set (const std::exception_ptr &error)
 Sets the global exception.
 

Detailed Description

A wrapper for passing exceptions between threads (i.e. a background thread to the main one)


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