[#BloombergLP-bslmt-Configuration-setDefaultThreadStackSize]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/Configuration.adoc[Configuration]::setDefaultThreadStackSize
:relfileprefix: ../../../
:mrdocs:

Set the default thread stack size to the specified `numBytes`&period; If a minimum thread stack size is known for the underlying platform (i&period;e&period; `PTHREAD&lowbar;STACK&lowbar;MIN` is defined) and `numBytes` is below that minimum, the stack size will be that minimum&period; The behavior is undefined unless `0 &lt;&equals; numBytes`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
setDefaultThreadStackSize(int numBytes);
----


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