[#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`. Return a non‐`const` reference to this object (see also {Fluent Interface}). If `stackSize` is `e_UNSET_STACK_SIZE`, thread creation should use the default stack size value provided by `bslmt_configuration`. The behavior is undefined unless `e_UNSET_STACK_SIZE == stackSize` or `0 <= stackSize`. == Synopsis Declared in `<bslmt_threadattributes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslmt/ThreadAttributes.adoc[ThreadAttributes]& setStackSize(int value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#