Skip to content

Commit 933e361

Browse files
author
Denis Chaplygin
committed
Removed catching of obsolete tbb:captured_exception, as TBB now supports C++ native std::exception_ptr inter-thread exception passing mechanism.
1 parent 03d9e7a commit 933e361

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/updater/csv_file_parser.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#include <boost/spirit/include/phoenix.hpp>
1818
#include <boost/spirit/include/qi.hpp>
1919

20+
#include <exception>
21+
#include <stdexcept>
2022
#include <vector>
2123

2224
namespace osrm
@@ -80,7 +82,9 @@ template <typename Key, typename Value> struct CSVFilesParser
8082

8183
return LookupTable<Key, Value>{lookup};
8284
}
83-
catch (const tbb::captured_exception &e)
85+
catch (const std::exception &e)
86+
// TBB should capture to std::exception_ptr and automatically rethrow in this thread.
87+
// https://software.intel.com/en-us/node/506317
8488
{
8589
throw util::exception(e.what() + SOURCE_REF);
8690
}

0 commit comments

Comments
 (0)