[#BloombergLP-bslmt-ThreadAttributes-setStackSize]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadAttributes.adoc[ThreadAttributes]::setStackSize
:relfileprefix: ../../../
:mrdocs:

Set the `stackSize` attribute of this object to the specified `value`&period; Return a non&hyphen;`const` reference to this object (see also &lcub;Fluent Interface&rcub;)&period; If `stackSize` is `e&lowbar;UNSET&lowbar;STACK&lowbar;SIZE`, thread creation should use the default stack size value provided by `bslmt&lowbar;configuration`&period; The behavior is undefined unless `e&lowbar;UNSET&lowbar;STACK&lowbar;SIZE &equals;&equals; stackSize` or `0 &lt;&equals; stackSize`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslmt/ThreadAttributes.adoc[ThreadAttributes]&
setStackSize(int value);
----


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