united thread to parallel
This commit is contained in:
parent
45e964a8fb
commit
e8b7e99b45
@ -30,7 +30,14 @@ namespace try_engine::app_event
|
||||
|
||||
tbb::parallel_for(tbb::blocked_range<int>(0, l_stack.size()), [&](tbb::blocked_range<int> 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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user