diff --git a/src/try_engine/event/app_event/event.hpp b/src/try_engine/event/app_event/event.hpp index 98aa03f..154fef0 100644 --- a/src/try_engine/event/app_event/event.hpp +++ b/src/try_engine/event/app_event/event.hpp @@ -30,7 +30,14 @@ namespace try_engine::app_event tbb::parallel_for(tbb::blocked_range(0, l_stack.size()), [&](tbb::blocked_range r) { for (int i = r.begin(); i < r.end(); ++i) - l_stack[i]->on_event(type, value); + { + std::thread th { + [&]() { + l_stack[i]->on_event(type, value); + } + }; + th.detach(); + } }); }