[#BloombergLP-balm-MetricRegistry-setCategoryEnabled] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balm.adoc[balm]::xref:BloombergLP/balm/MetricRegistry.adoc[MetricRegistry]::setCategoryEnabled :relfileprefix: ../../../ :mrdocs: Set whether the specified `category` is enabled to the specified `value`. The behavior is undefined unless `category` is a valid address of a category previously returned by this metric registry. Note that this operation is thread‐safe, but _not_ atomic: Other threads may simultaneously access the current enabled value for `category` while this operation completes. Also note that this operation has _linear_ runtime performance with respect to the number of registered category holders for `category`. == Synopsis Declared in `<balm_metricregistry.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setCategoryEnabled( xref:BloombergLP/balm/Category.adoc[Category] const* category, bool value); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#