BloombergLP::bslmt::ThreadUtil::create

Same as the preceding overload, using the specified attributes.

Synopsis

Declared in <bslmt_threadutil.h>

static
int
create(
    Handle* handle,
    ThreadAttributes const& attributes,
    ThreadFunction function,
    void* userData);

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
handlereceives an identifier for the new thread
attributesproperties for the new thread
functionentry-point function invoked by the new thread
userDatasole argument passed to function