[#BloombergLP-bslmt-ThreadUtil-create-0d]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::create
:relfileprefix: ../../../
:mrdocs:

Same as the preceding overload, using the specified `attributes`&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;threadutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
int
create(
    xref:BloombergLP/bslmt/ThreadUtil/Handle.adoc[Handle]* handle,
    xref:BloombergLP/bslmt/ThreadAttributes.adoc[ThreadAttributes] const& attributes,
    xref:BloombergLP/bslmt/ThreadUtil/ThreadFunction.adoc[ThreadFunction] function,
    void* userData);
----

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *handle*
| receives an identifier for the new thread
| *attributes*
| properties for the new thread
| *function*
| entry&hyphen;point function invoked by the new thread
| *userData*
| sole argument passed to `function`
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
