May 2017
Intermediate to advanced
590 pages
17h 18m
English
To properly handle exceptions thrown in a worker thread from the main thread or the thread where it was joined, do the following (assuming multiple exceptions can be thrown from multiple threads):
std::vector<std::exception_ptr> g_exceptions;
std::mutex g_mutex;
void func1() { throw std::exception("exception 1"); ...Read now
Unlock full access