summaryrefslogtreecommitdiff
path: root/static/freebsd/man3/pthread_detach.3 3.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/freebsd/man3/pthread_detach.3 3.html')
-rw-r--r--static/freebsd/man3/pthread_detach.3 3.html77
1 files changed, 77 insertions, 0 deletions
diff --git a/static/freebsd/man3/pthread_detach.3 3.html b/static/freebsd/man3/pthread_detach.3 3.html
new file mode 100644
index 00000000..b411f981
--- /dev/null
+++ b/static/freebsd/man3/pthread_detach.3 3.html
@@ -0,0 +1,77 @@
+<table class="head">
+ <tr>
+ <td class="head-ltitle">PTHREAD_DETACH(3)</td>
+ <td class="head-vol">Library Functions Manual</td>
+ <td class="head-rtitle">PTHREAD_DETACH(3)</td>
+ </tr>
+</table>
+<div class="manual-text">
+<section class="Sh">
+<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
+<p class="Pp"><code class="Nm">pthread_detach</code> &#x2014;
+ <span class="Nd">detach a thread</span></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="LIBRARY"><a class="permalink" href="#LIBRARY">LIBRARY</a></h1>
+<p class="Pp"><span class="Lb">POSIX Threads Library (libpthread,
+ -lpthread)</span></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
+<p class="Pp"><code class="In">#include
+ &lt;<a class="In">pthread.h</a>&gt;</code></p>
+<p class="Pp"><var class="Ft">int</var>
+ <br/>
+ <code class="Fn">pthread_detach</code>(<var class="Fa" style="white-space: nowrap;">pthread_t
+ thread</var>);</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
+<p class="Pp">The
+ <a class="permalink" href="#pthread_detach"><code class="Fn" id="pthread_detach">pthread_detach</code></a>()
+ function is used to indicate to the implementation that storage for the
+ thread <var class="Fa">thread</var> can be reclaimed when the thread
+ terminates. If <var class="Fa">thread</var> has not terminated,
+ <code class="Fn">pthread_detach</code>() will not cause it to terminate. The
+ effect of multiple <code class="Fn">pthread_detach</code>() calls on the
+ same target thread is unspecified.</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN
+ VALUES</a></h1>
+<p class="Pp">If successful, the <code class="Fn">pthread_detach</code>()
+ function will return zero. Otherwise an error number will be returned to
+ indicate the error. Note that the function does not change the value of
+ errno as it did for some drafts of the standard. These early drafts also
+ passed a pointer to pthread_t as the argument. Beware!</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="ERRORS"><a class="permalink" href="#ERRORS">ERRORS</a></h1>
+<p class="Pp">The <code class="Fn">pthread_detach</code>() function will fail
+ if:</p>
+<dl class="Bl-tag">
+ <dt id="EINVAL">[<a class="permalink" href="#EINVAL"><code class="Er">EINVAL</code></a>]</dt>
+ <dd>The implementation has detected that the value specified by
+ <var class="Fa">thread</var> does not refer to a joinable thread.</dd>
+ <dt id="ESRCH">[<a class="permalink" href="#ESRCH"><code class="Er">ESRCH</code></a>]</dt>
+ <dd>No thread could be found corresponding to that specified by the given
+ thread ID, <var class="Fa">thread</var>.</dd>
+</dl>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
+ ALSO</a></h1>
+<p class="Pp"><a class="Xr">pthread_join(3)</a></p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="STANDARDS"><a class="permalink" href="#STANDARDS">STANDARDS</a></h1>
+<p class="Pp">The <code class="Fn">pthread_detach</code>() function conforms to
+ <span class="St">ISO/IEC 9945-1:1996 (&#x201C;POSIX.1&#x201D;)</span>.</p>
+</section>
+</div>
+<table class="foot">
+ <tr>
+ <td class="foot-date">April 4, 1996</td>
+ <td class="foot-os">FreeBSD 15.0</td>
+ </tr>
+</table>