summaryrefslogtreecommitdiff
path: root/static/freebsd/man3/pthread_rwlock_unlock.3 3.html
diff options
context:
space:
mode:
Diffstat (limited to 'static/freebsd/man3/pthread_rwlock_unlock.3 3.html')
-rw-r--r--static/freebsd/man3/pthread_rwlock_unlock.3 3.html82
1 files changed, 82 insertions, 0 deletions
diff --git a/static/freebsd/man3/pthread_rwlock_unlock.3 3.html b/static/freebsd/man3/pthread_rwlock_unlock.3 3.html
new file mode 100644
index 00000000..d93e16c0
--- /dev/null
+++ b/static/freebsd/man3/pthread_rwlock_unlock.3 3.html
@@ -0,0 +1,82 @@
+<table class="head">
+ <tr>
+ <td class="head-ltitle">PTHREAD_RWLOCK_UNLOCK(3)</td>
+ <td class="head-vol">Library Functions Manual</td>
+ <td class="head-rtitle">PTHREAD_RWLOCK_UNLOCK(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_rwlock_unlock</code> &#x2014;
+ <span class="Nd">release a read/write lock</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_rwlock_unlock</code>(<var class="Fa" style="white-space: nowrap;">pthread_rwlock_t
+ *lock</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_rwlock_unlock"><code class="Fn" id="pthread_rwlock_unlock">pthread_rwlock_unlock</code></a>()
+ function is used to release the read/write lock previously obtained by
+ <a class="permalink" href="#pthread_rwlock_rdlock"><code class="Fn" id="pthread_rwlock_rdlock">pthread_rwlock_rdlock</code></a>(),
+ <a class="permalink" href="#pthread_rwlock_wrlock"><code class="Fn" id="pthread_rwlock_wrlock">pthread_rwlock_wrlock</code></a>(),
+ <a class="permalink" href="#pthread_rwlock_tryrdlock"><code class="Fn" id="pthread_rwlock_tryrdlock">pthread_rwlock_tryrdlock</code></a>(),
+ or
+ <a class="permalink" href="#pthread_rwlock_trywrlock"><code class="Fn" id="pthread_rwlock_trywrlock">pthread_rwlock_trywrlock</code></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">If successful, the <code class="Fn">pthread_rwlock_unlock</code>()
+ function will return zero. Otherwise an error number will be returned to
+ indicate the error.</p>
+<p class="Pp">The results are undefined if <var class="Fa">lock</var> is not
+ held by the calling thread.</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_rwlock_unlock</code>() function may
+ 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">lock</var> is invalid.</dd>
+ <dt id="EPERM">[<a class="permalink" href="#EPERM"><code class="Er">EPERM</code></a>]</dt>
+ <dd>The current thread does not own the read/write lock.</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_rwlock_rdlock(3)</a>,
+ <a class="Xr">pthread_rwlock_wrlock(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_rwlock_unlock</code>() function is
+ expected to conform to <span class="St">Version&#x00A0;2 of the Single UNIX
+ Specification (&#x201C;SUSv2&#x201D;)</span>.</p>
+</section>
+<section class="Sh">
+<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
+<p class="Pp">The <code class="Fn">pthread_rwlock_unlock</code>() function first
+ appeared in <span class="Ux">FreeBSD 3.0</span>.</p>
+</section>
+</div>
+<table class="foot">
+ <tr>
+ <td class="foot-date">August 4, 1998</td>
+ <td class="foot-os">FreeBSD 15.0</td>
+ </tr>
+</table>