diff options
Diffstat (limited to 'static/freebsd/man3/pthread_suspend_np.3 3.html')
| -rw-r--r-- | static/freebsd/man3/pthread_suspend_np.3 3.html | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/static/freebsd/man3/pthread_suspend_np.3 3.html b/static/freebsd/man3/pthread_suspend_np.3 3.html new file mode 100644 index 00000000..c9949026 --- /dev/null +++ b/static/freebsd/man3/pthread_suspend_np.3 3.html @@ -0,0 +1,82 @@ +<table class="head"> + <tr> + <td class="head-ltitle">PTHREAD_SUSPEND_NP(3)</td> + <td class="head-vol">Library Functions Manual</td> + <td class="head-rtitle">PTHREAD_SUSPEND_NP(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_suspend_np</code> — + <span class="Nd">suspend 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 + <<a class="In">pthread_np.h</a>></code></p> +<p class="Pp"><var class="Ft">int</var> + <br/> + <code class="Fn">pthread_suspend_np</code>(<var class="Fa" style="white-space: nowrap;">pthread_t + tid</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_suspend_np"><code class="Fn" id="pthread_suspend_np">pthread_suspend_np</code></a>() + function, called on an active thread, causes it to suspend.</p> +<p class="Pp" id="pthread_suspend_np~2">It is not safe for the caller of the + <a class="permalink" href="#pthread_suspend_np~2"><code class="Fn">pthread_suspend_np</code></a>() + function to use any non-async signal safe functions, except + <a class="Xr">pthread_resume_np(3)</a>, until suspended thread is resumed, + unless measures are taken to ensure that the thread is suspended at a safe + point.</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, <code class="Fn">pthread_suspend_np</code>() + function returns 0. Otherwise, an error number is returned to indicate the + error.</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_suspend_np</code>() function will + fail if:</p> +<dl class="Bl-tag"> + <dt id="EDEADLK">[<a class="permalink" href="#EDEADLK"><code class="Er">EDEADLK</code></a>]</dt> + <dd>An attempt was made to suspend the current thread.</dd> + <dt id="EINVAL">[<a class="permalink" href="#EINVAL"><code class="Er">EINVAL</code></a>]</dt> + <dd>The value specified by the <var class="Fa">tid</var> argument is + invalid.</dd> + <dt id="ESRCH">[<a class="permalink" href="#ESRCH"><code class="Er">ESRCH</code></a>]</dt> + <dd>No thread could be found corresponding to the thread ID specified by the + <var class="Fa">tid</var> argument.</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_np(3)</a>, + <a class="Xr">pthread_resume_all_np(3)</a>, + <a class="Xr">pthread_resume_np(3)</a>, + <a class="Xr">pthread_suspend_all_np(3)</a></p> +</section> +<section class="Sh"> +<h1 class="Sh" id="AUTHORS"><a class="permalink" href="#AUTHORS">AUTHORS</a></h1> +<p class="Pp">This manual page was written by <span class="An">Alexey + Zelkin</span> + <<a class="Mt" href="mailto:phantom@FreeBSD.org">phantom@FreeBSD.org</a>>.</p> +</section> +</div> +<table class="foot"> + <tr> + <td class="foot-date">October 12, 2021</td> + <td class="foot-os">FreeBSD 15.0</td> + </tr> +</table> |
