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

Return the value of the `detachedState` attribute of this object&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslmt/ThreadAttributes/DetachedState-09.adoc[ThreadAttributes::DetachedState]
detachedState() const;
----

== Description

A value of `e&lowbar;CREATE&lowbar;JOINABLE` indicates that a thread must be joined after it terminates to clean up its resources&semi; a value of `e&lowbar;CREATE&lowbar;DETACHED` (the only other legal value) indicates that the resources will be cleaned up automatically upon thread termination, and that the thread must not be joined&period;

== Return Value

the `detachedState` attribute of this object


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