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