diff --git a/src/try_engine/event/app_event/event.hpp b/src/try_engine/event/app_event/event.hpp index 25159ee..4857903 100644 --- a/src/try_engine/event/app_event/event.hpp +++ b/src/try_engine/event/app_event/event.hpp @@ -18,11 +18,20 @@ namespace try_engine::app_event void execute(std::any type, std::any value) { - tbb::parallel_for(tbb::blocked_range(0, l_stack.size()), [&](tbb::blocked_range r) + for (const auto layer : l_stack) { - for (int i = r.begin(); i < r.end(); ++i) - l_stack[i]->on_event(type, value); - }); + std::thread th { + [=]() { + layer->on_event(type, value); + } + }; + th.detach(); + } + + // 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); + // }); } void print_size(); diff --git a/tests/test_wave_file.wav b/tests/test_wave_file.wav deleted file mode 100644 index 41f0204..0000000 Binary files a/tests/test_wave_file.wav and /dev/null differ