diff options
Diffstat (limited to 'static/freebsd/man3/pthread_once.3 3.html')
| -rw-r--r-- | static/freebsd/man3/pthread_once.3 3.html | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/static/freebsd/man3/pthread_once.3 3.html b/static/freebsd/man3/pthread_once.3 3.html deleted file mode 100644 index f0b90d08..00000000 --- a/static/freebsd/man3/pthread_once.3 3.html +++ /dev/null @@ -1,84 +0,0 @@ -<table class="head"> - <tr> - <td class="head-ltitle">PTHREAD_ONCE(3)</td> - <td class="head-vol">Library Functions Manual</td> - <td class="head-rtitle">PTHREAD_ONCE(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_once</code> — - <span class="Nd">dynamic package initialization</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">pthread_once_t <var class="Fa">once_control</var> = - PTHREAD_ONCE_INIT; - <br/> - <var class="Ft">int</var> - <br/> - <code class="Fn">pthread_once</code>(<var class="Fa" style="white-space: nowrap;">pthread_once_t - *once_control</var>, <var class="Fa" style="white-space: nowrap;">void - (*init_routine)(void)</var>);</p> -</section> -<section class="Sh"> -<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1> -<p class="Pp">The first call to - <a class="permalink" href="#pthread_once"><code class="Fn" id="pthread_once">pthread_once</code></a>() - by any thread in a process, with a given <var class="Fa">once_control</var>, - will call the - <a class="permalink" href="#init_routine"><code class="Fn" id="init_routine">init_routine</code></a>() - with no arguments. Subsequent calls to - <code class="Fn">pthread_once</code>() with the same - <var class="Fa">once_control</var> will not call the - <code class="Fn">init_routine</code>(). On return from - <code class="Fn">pthread_once</code>(), it is guaranteed that - <code class="Fn">init_routine</code>() has completed. The - <var class="Fa">once_control</var> parameter is used to determine whether - the associated initialization routine has been called.</p> -<p class="Pp" id="pthread_once~2">The function - <a class="permalink" href="#pthread_once~2"><code class="Fn">pthread_once</code></a>() - is not a cancellation point. However, if - <a class="permalink" href="#init_routine~2"><code class="Fn" id="init_routine~2">init_routine</code></a>() - is a cancellation point and is cancelled, the effect on - <var class="Fa">once_control</var> is as if - <code class="Fn">pthread_once</code>() was never called.</p> -<p class="Pp">The constant <var class="Fa">PTHREAD_ONCE_INIT</var> is defined by - header <code class="In"><<a class="In">pthread.h</a>></code>.</p> -<p class="Pp" id="pthread_once~3">The behavior of - <a class="permalink" href="#pthread_once~3"><code class="Fn">pthread_once</code></a>() - is undefined if <var class="Fa">once_control</var> has automatic storage - duration or is not initialized by - <var class="Fa">PTHREAD_ONCE_INIT</var>.</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_once</code>() function - will return zero. 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">None.</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_once</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">April 4, 1996</td> - <td class="foot-os">FreeBSD 15.0</td> - </tr> -</table> |
