diff options
Diffstat (limited to 'static/freebsd/man3/pthread_cond_init.3 3.html')
| -rw-r--r-- | static/freebsd/man3/pthread_cond_init.3 3.html | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/static/freebsd/man3/pthread_cond_init.3 3.html b/static/freebsd/man3/pthread_cond_init.3 3.html new file mode 100644 index 00000000..a750e401 --- /dev/null +++ b/static/freebsd/man3/pthread_cond_init.3 3.html @@ -0,0 +1,82 @@ +<table class="head"> + <tr> + <td class="head-ltitle">PTHREAD_COND_INIT(3)</td> + <td class="head-vol">Library Functions Manual</td> + <td class="head-rtitle">PTHREAD_COND_INIT(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_cond_init</code> — + <span class="Nd">create a condition variable</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.h</a>></code></p> +<p class="Pp"><var class="Ft">int</var> + <br/> + <code class="Fn">pthread_cond_init</code>(<var class="Fa" style="white-space: nowrap;">pthread_cond_t + *restrict cond</var>, <var class="Fa" style="white-space: nowrap;">const + pthread_condattr_t *restrict attr</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_cond_init"><code class="Fn" id="pthread_cond_init">pthread_cond_init</code></a>() + function creates a new condition variable, with attributes specified with + <var class="Fa">attr</var>. If <var class="Fa">attr</var> is NULL the + default attributes are used.</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_cond_init</code>() + function will return zero and put the new condition variable id into + <var class="Fa">cond</var>, otherwise an error number will be 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_cond_init</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 value specified by <var class="Fa">attr</var> is invalid.</dd> + <dt id="ENOMEM">[<a class="permalink" href="#ENOMEM"><code class="Er">ENOMEM</code></a>]</dt> + <dd>The process cannot allocate enough memory to create another condition + variable.</dd> + <dt id="EAGAIN">[<a class="permalink" href="#EAGAIN"><code class="Er">EAGAIN</code></a>]</dt> + <dd>The system temporarily lacks the resources to create another condition + variable.</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_cond_broadcast(3)</a>, + <a class="Xr">pthread_cond_destroy(3)</a>, + <a class="Xr">pthread_cond_signal(3)</a>, + <a class="Xr">pthread_cond_timedwait(3)</a>, + <a class="Xr">pthread_cond_wait(3)</a>, + <a class="Xr">pthread_condattr(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_cond_init</code>() function conforms + to <span class="St">ISO/IEC 9945-1:1996 + (“POSIX.1”)</span>.</p> +</section> +</div> +<table class="foot"> + <tr> + <td class="foot-date">August 17, 2018</td> + <td class="foot-os">FreeBSD 15.0</td> + </tr> +</table> |
