[#BloombergLP-bslmt-ThreadGroup-addThreads-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadGroup.adoc[ThreadGroup]::addThreads :relfileprefix: ../../../ :mrdocs: Begin executing the specified invokable `functor` in the specified new `numThreads`, using the optionally specified thread `attributes`. Return `numThreads` on success, or the number of threads successfully started otherwise. `INVOKABLE` shall be a copy‐constructible type having the equivalent of `void operator()()`. Note that threads are always created joinable, regardless of the mode specified in `attributes`. == Synopsis Declared in `<bslmt_threadgroup.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class INVOKABLE> int addThreads( INVOKABLE const& functor, int numThreads); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#