[#BloombergLP-bslmt-ThreadGroup-addThreads-03] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadGroup.adoc[ThreadGroup]::addThreads :relfileprefix: ../../../ :mrdocs: `addThreads` overloads == Synopses Declared in `<bslmt_threadgroup.h>` Begin executing the specified invokable functor in new threads. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class INVOKABLE> int xref:BloombergLP/bslmt/ThreadGroup/addThreads-08.adoc[addThreads]( INVOKABLE const& functor, int numThreads); ---- [.small]#xref:BloombergLP/bslmt/ThreadGroup/addThreads-08.adoc[_» more..._]# Same as the preceding overload, using the specified thread attributes. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class INVOKABLE> int xref:BloombergLP/bslmt/ThreadGroup/addThreads-02.adoc[addThreads]( INVOKABLE const& functor, int numThreads, xref:BloombergLP/bslmt/ThreadAttributes.adoc[ThreadAttributes] const& attributes); ---- [.small]#xref:BloombergLP/bslmt/ThreadGroup/addThreads-02.adoc[_» more..._]# == Return Value `numThreads` on success, or the number of threads successfully started otherwise == Parameters [cols="1,4"] |=== | Name| Description | *functor* | invokable object executed as the thread entry point | *numThreads* | number of new threads to start | *attributes* | properties for the new threads |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#