[#BloombergLP-bslmt-ThreadUtilImpl-04-exit] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtilImpl-04.adoc[ThreadUtilImpl<Platform::PosixThreads>]::exit :relfileprefix: ../../../ :mrdocs: Exit the current thread and return the specified `status`. If the current thread is not "detached", then a call to `join` must be made to reclaim any resources used by the thread, and to retrieve the exit status. Note that generally, the preferred method of exiting a thread is to return form the entry point function. == Synopsis Declared in `<bslmt_threadutilimpl_pthread.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static void exit(void* status); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#