diff options
Diffstat (limited to 'static/freebsd/man3/pthread_multi_np.3 4.html')
| -rw-r--r-- | static/freebsd/man3/pthread_multi_np.3 4.html | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/static/freebsd/man3/pthread_multi_np.3 4.html b/static/freebsd/man3/pthread_multi_np.3 4.html new file mode 100644 index 00000000..3fd0901d --- /dev/null +++ b/static/freebsd/man3/pthread_multi_np.3 4.html @@ -0,0 +1,68 @@ +<table class="head"> + <tr> + <td class="head-ltitle">PTHREAD_MULTI_NP(3)</td> + <td class="head-vol">Library Functions Manual</td> + <td class="head-rtitle">PTHREAD_MULTI_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_multi_np</code>, + <code class="Nm">pthread_single_np</code> — <span class="Nd">switch + between multi- and single-threaded scheduling modes</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_multi_np</code>(<var class="Fa" style="white-space: nowrap;">void</var>);</p> +<p class="Pp"><var class="Ft">int</var> + <br/> + <code class="Fn">pthread_single_np</code>(<var class="Fa" style="white-space: nowrap;">void</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_single_np"><code class="Fn" id="pthread_single_np">pthread_single_np</code></a>() + function switches the process to a single-threaded mode, i.e., suspends all + threads except the current. The semantics of this function is similar to + <a class="Xr">pthread_suspend_all_np(3)</a>.</p> +<p class="Pp" id="pthread_multi_np">The + <a class="permalink" href="#pthread_multi_np"><code class="Fn">pthread_multi_np</code></a>() + function switches the process to a multi-threaded mode. The semantics of + this function is similar to <a class="Xr">pthread_resume_all_np(3)</a>.</p> +</section> +<section class="Sh"> +<h1 class="Sh" id="RETURN_VALUES"><a class="permalink" href="#RETURN_VALUES">RETURN + VALUES</a></h1> +<p class="Pp">The <code class="Fn">pthread_multi_np</code>() and + <code class="Nm">pthread_single_np</code> functions always return 0.</p> +</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_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> |
