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

Set the `guardSize` attribute of this object to the specified `value` (in bytes)&period; Return a non&hyphen;`const` reference to this object (see also &lcub;Fluent Interface&rcub;)&period; `e&lowbar;UNSET&lowbar;GUARD&lowbar;SIZE &equals;&equals; guardSize` is intended to indicate that the default value as defined by the platform is to be used&period; This default value is typically the size of one or two pages (see `bslmt&lowbar;configuration`)&period; The behavior is undefined unless `e&lowbar;UNSET&lowbar;GUARD&lowbar;SIZE &equals;&equals; guardSize` or `guardSize &gt;&equals; 0`&period;

== Synopsis

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

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


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