[#BloombergLP-balm-Category-setEnabled]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/Category.adoc[Category]::setEnabled
:relfileprefix: ../../../
:mrdocs:

Set the `enabled` state of this category to the value of the specified `enabledFlag` and update any `CategoryHolder` objects registered with this category&period; Note that this operation is _not_ atomic, and other threads may simultaneously access the current enabled value while this operation is performed&period; Also note that this operation has _linear_ performance with respect to the number of registered category holders for `category`&period;

== Synopsis

Declared in `&lt;balm&lowbar;category&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
setEnabled(bool enabledFlag);
----


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