[#BloombergLP-bslmt-ThreadUtilImpl-04-exit]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/ThreadUtilImpl-04.adoc[ThreadUtilImpl&lt;Platform::PosixThreads&gt;]::exit
:relfileprefix: ../../../
:mrdocs:

Exit the current thread and return the specified status&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;threadutilimpl&lowbar;pthread&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
exit(void* status);
----

== Description

Exit the current thread and return the specified `status`&period; If the current thread is not &quot;detached&quot;, then a call to `join` must be made to reclaim any resources used by the thread, and to retrieve the exit status&period; Note that generally, the preferred method of exiting a thread is to return form the entry point function&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *status*
| exit status made available to a joining thread
|===


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