We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec5c527 commit ef34c05Copy full SHA for ef34c05
taskflow/core/executor.hpp
@@ -1245,7 +1245,9 @@ inline void Executor::_spawn(size_t N) {
1245
// must use 1 as condition instead of !done because
1246
// the previous worker may stop while the following workers
1247
// are still preparing for entering the scheduling loop
1248
+#ifndef TF_DISABLE_EXCEPTION_HANDLING
1249
try {
1250
+#endif
1251
1252
// worker loop
1253
while(1) {
@@ -1258,10 +1260,13 @@ inline void Executor::_spawn(size_t N) {
1258
1260
break;
1259
1261
}
1262
1263
+
1264
1265
1266
catch(...) {
1267
ptr = std::current_exception();
1268
1269
1270
1271
// call the user-specified epilogue function
1272
if(_worker_interface) {
0 commit comments