[#BloombergLP-bslmt-ThreadUtil-detach] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtil.adoc[ThreadUtil]::detach :relfileprefix: ../../../ :mrdocs: "Detach" the thread identified by the specified `handle` such that when it terminates, the resources associated with that thread will automatically be reclaimed. The behavior is undefined unless `handle` was obtained by a call to `create` or `self`. Note that once a thread is "detached", it is no longer possible to `join` the thread to retrieve its exit status. == Synopsis Declared in `<bslmt_threadutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int detach(xref:BloombergLP/bslmt/ThreadUtil/Handle.adoc[Handle]& handle); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#