summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorAlexey Lapshin <a.v.lapshin@mail.ru>2023-04-18 20:22:55 +0200
committerAlexey Lapshin <a.v.lapshin@mail.ru>2023-04-26 13:52:26 +0200
commitfea8c073561f21ac0fea7f961287bf6b7dcf9f96 (patch)
treec44141287ccb187acd353ed919db02813e4314e4 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent329bfcc8df47e229d9f0a453a93e3a6040ace454 (diff)
[Support][Parallel] Add sequential mode to TaskGroup::spawn().
This patch allows to specify that some part of tasks should be done in sequential order. It makes it possible to not use condition operator for separating sequential tasks: TaskGroup tg; for () { if(condition) ==> tg.spawn([](){fn();}, condition) fn(); else tg.spawn([](){fn();}); } It also prevents execution on main thread. Which allows adding checks for getThreadIndex() function discussed in D142318. The patch also replaces std::stack with std::deque in the ThreadPoolExecutor to have natural execution order in case (parallel::strategy.ThreadsRequested == 1). Differential Revision: https://reviews.llvm.org/D148728
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions