[#llvm-StdThreadPool-wait-09] = xref:llvm.adoc[llvm]::xref:llvm/StdThreadPool.adoc[StdThreadPool]::wait :relfileprefix: ../../ :mrdocs: Block until all tasks in the given group complete. == Synopsis Declared in `<llvm/Support/ThreadPool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual void wait(xref:llvm/ThreadPoolTaskGroup.adoc[ThreadPoolTaskGroup]& Group) override; ---- == Description It is possible to wait even inside a task, but waiting (directly or indirectly) on itself will deadlock. If called from a task running on a worker thread, the call may process pending tasks while waiting in order not to waste the thread. == Parameters [cols="1,4"] |=== | Name| Description | *Group* | Task group whose tasks to wait for. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#