BloombergLP::bslmt::ThreadGroup::addThread

addThread overloads

Synopses

Declared in <bslmt_threadgroup.h>

Begin executing the specified invokable functor in a new thread.

template<class INVOKABLE>
int
addThread(INVOKABLE const& functor);
» more...

Same as the preceding overload, using the specified thread attributes.

template<class INVOKABLE>
int
addThread(
    INVOKABLE const& functor,
    ThreadAttributes const& attributes);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
functorinvokable object executed as the thread entry point
attributesproperties for the new thread