[#BloombergLP-bslmt-ThreadAttributes-2constructor-09]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadAttributes.adoc[ThreadAttributes]::ThreadAttributes
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create a `ThreadAttributes` object having the (default) attribute values&colon; &ast; `detachedState() &equals;&equals; e&lowbar;CREATE&lowbar;JOINABLE` &ast; `guardSize() &equals;&equals; e&lowbar;UNSET&lowbar;GUARD&lowbar;SIZE` &ast; `inheritSchedule() &equals;&equals; true` &ast; `schedulingPolicy() &equals;&equals; e&lowbar;SCHED&lowbar;DEFAULT` &ast; `schedulingPriority() &equals;&equals; e&lowbar;UNSET&lowbar;PRIORITY` &ast; `stackSize() &equals;&equals; e&lowbar;UNSET&lowbar;STACK&lowbar;SIZE` &ast; `threadName() &equals;&equals; &quot;&quot;` Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslmt/ThreadAttributes/2constructor-06.adoc[ThreadAttributes]();
----

[.small]#xref:BloombergLP/bslmt/ThreadAttributes/2constructor-06.adoc[_» more&period;&period;&period;_]#

Same as the default constructor, using the specified `basicAllocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:BloombergLP/bslmt/ThreadAttributes/2constructor-0e.adoc[ThreadAttributes](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----

[.small]#xref:BloombergLP/bslmt/ThreadAttributes/2constructor-0e.adoc[_» more&period;&period;&period;_]#

Create a `ThreadAttributes` object having the same value as the specified `original` object&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslmt/ThreadAttributes/2constructor-0c.adoc[ThreadAttributes](
    xref:BloombergLP/bslmt/ThreadAttributes.adoc[ThreadAttributes] const& original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----

[.small]#xref:BloombergLP/bslmt/ThreadAttributes/2constructor-0c.adoc[_» more&period;&period;&period;_]#


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