[#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`. == Synopsis Declared in `<bslmt_threadattributes.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslmt/ThreadAttributes.adoc[ThreadAttributes]& setStackSize(int value); ---- == Description 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`. == Return Value a non‐`const` reference to this object == Parameters [cols="1,4"] |=== | Name| Description | *value* | stack size in bytes, or `e_UNSET_STACK_SIZE` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#