[#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 `<bslmt_threadattributes.h>` Create a `ThreadAttributes` object having the (default) attribute values: * `detachedState() == e_CREATE_JOINABLE` * `guardSize() == e_UNSET_GUARD_SIZE` * `inheritSchedule() == true` * `schedulingPolicy() == e_SCHED_DEFAULT` * `schedulingPriority() == e_UNSET_PRIORITY` * `stackSize() == e_UNSET_STACK_SIZE` * `threadName() == ""` Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslmt/ThreadAttributes/2constructor-06.adoc[ThreadAttributes](); ---- [.small]#xref:BloombergLP/bslmt/ThreadAttributes/2constructor-06.adoc[_» more..._]# Same as the default constructor, using the specified `basicAllocator`. [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..._]# Create a `ThreadAttributes` object having the same value as the specified `original` object. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. [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..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#