addThreads overloads
Declared in <bslmt_threadgroup.h>
Begin executing the specified invokable functor in new threads.
template<class INVOKABLE>
int
addThreads(
INVOKABLE const& functor,
int numThreads);
» more...
Same as the preceding overload, using the specified thread attributes.
template<class INVOKABLE>
int
addThreads(
INVOKABLE const& functor,
int numThreads,
ThreadAttributes const& attributes);
» more...
numThreads on success, or the number of threads successfully started otherwise
| Name | Description |
|---|---|
| functor | invokable object executed as the thread entry point |
| numThreads | number of new threads to start |
| attributes | properties for the new threads |