create overloads

Synopses

Declared in <bslmt_threadutilimpl_pthread.h>

Create a thread with default attributes and the given entry point.

static
int
create(
    Handle* threadHandle,
    bslmt_ThreadFunction function,
    void* userData);

Create a thread with the specified attributes and entry‐point function.

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

Return Value

0 on success, and a non‐zero value otherwise

Parameters

Name

Description

threadHandle

receives an identifier for the new thread

function

entry‐point function invoked by the new thread

userData

sole argument passed to function

attributes

properties for the new thread

Created with MrDocs