1<?xml version="1.0" encoding="UTF-8" standalone="no"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <title>DB_ENV->mutex_unlock()</title> 7 <link rel="stylesheet" href="apiReference.css" type="text/css" /> 8 <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /> 9 <link rel="start" href="index.html" title="Berkeley DB C API Reference" /> 10 <link rel="up" href="mutex.html" title="Chapter 9. Mutex Methods" /> 11 <link rel="prev" href="mutexstat_print.html" title="DB_ENV->mutex_stat_print()" /> 12 <link rel="next" href="rep.html" title="Chapter 10. Replication Methods" /> 13 </head> 14 <body> 15 <div class="navheader"> 16 <table width="100%" summary="Navigation header"> 17 <tr> 18 <th colspan="3" align="center">DB_ENV->mutex_unlock()</th> 19 </tr> 20 <tr> 21 <td width="20%" align="left"><a accesskey="p" href="mutexstat_print.html">Prev</a> </td> 22 <th width="60%" align="center">Chapter 9. 23 Mutex Methods 24 </th> 25 <td width="20%" align="right"> <a accesskey="n" href="rep.html">Next</a></td> 26 </tr> 27 </table> 28 <hr /> 29 </div> 30 <div class="sect1" lang="en" xml:lang="en"> 31 <div class="titlepage"> 32 <div> 33 <div> 34 <h2 class="title" style="clear: both"><a id="mutexunlock"></a>DB_ENV->mutex_unlock()</h2> 35 </div> 36 </div> 37 </div> 38 <pre class="programlisting">#include <db.h> 39 40int 41DB_ENV->mutex_unlock(DB_ENV *dbenv, db_mutex_t mutex); </pre> 42 <p> 43 The <code class="methodname">DB_ENV->mutex_unlock()</code> method unlocks the mutex locked by 44 <a class="xref" href="mutexlock.html" title="DB_ENV->mutex_lock()">DB_ENV->mutex_lock()</a>. 45 </p> 46 <p> 47 The <code class="methodname">DB_ENV->mutex_unlock()</code> <span> 48 <span> 49 method returns a non-zero error value on failure and 0 on success. 50 </span> 51 52 </span> 53 </p> 54 <div class="sect2" lang="en" xml:lang="en"> 55 <div class="titlepage"> 56 <div> 57 <div> 58 <h3 class="title"><a id="id1695747"></a>Parameters</h3> 59 </div> 60 </div> 61 </div> 62 <div class="sect3" lang="en" xml:lang="en"> 63 <div class="titlepage"> 64 <div> 65 <div> 66 <h4 class="title"><a id="id1695889"></a>mutex</h4> 67 </div> 68 </div> 69 </div> 70 <p> 71 The <span class="bold"><strong>mutex</strong></span> parameter is a mutex 72 previously locked by <a class="xref" href="mutexlock.html" title="DB_ENV->mutex_lock()">DB_ENV->mutex_lock()</a>. 73 </p> 74 </div> 75 </div> 76 <div class="sect2" lang="en" xml:lang="en"> 77 <div class="titlepage"> 78 <div> 79 <div> 80 <h3 class="title"><a id="id1695916"></a>Errors</h3> 81 </div> 82 </div> 83 </div> 84 <p> 85 The <code class="methodname">DB_ENV->mutex_unlock()</code> <span> 86 <span> 87 method may fail and return one of the following non-zero errors: 88 </span> 89 90 </span> 91 </p> 92 <div class="sect3" lang="en" xml:lang="en"> 93 <div class="titlepage"> 94 <div> 95 <div> 96 <h4 class="title"><a id="id1695890"></a>EINVAL</h4> 97 </div> 98 </div> 99 </div> 100 <p> 101 An invalid flag value or parameter was specified. 102 </p> 103 </div> 104 </div> 105 <div class="sect2" lang="en" xml:lang="en"> 106 <div class="titlepage"> 107 <div> 108 <div> 109 <h3 class="title"><a id="id1695892"></a>Class</h3> 110 </div> 111 </div> 112 </div> 113 <p> 114 <a class="link" href="env.html" title="Chapter 5. The DB_ENV Handle">DB_ENV</a> 115 </p> 116 </div> 117 <div class="sect2" lang="en" xml:lang="en"> 118 <div class="titlepage"> 119 <div> 120 <div> 121 <h3 class="title"><a id="id1695919"></a>See Also</h3> 122 </div> 123 </div> 124 </div> 125 <p> 126 <a class="xref" href="mutex.html#mutexlist" title="Mutex Methods">Mutex Methods</a> 127 </p> 128 </div> 129 </div> 130 <div class="navfooter"> 131 <hr /> 132 <table width="100%" summary="Navigation footer"> 133 <tr> 134 <td width="40%" align="left"><a accesskey="p" href="mutexstat_print.html">Prev</a> </td> 135 <td width="20%" align="center"> 136 <a accesskey="u" href="mutex.html">Up</a> 137 </td> 138 <td width="40%" align="right"> <a accesskey="n" href="rep.html">Next</a></td> 139 </tr> 140 <tr> 141 <td width="40%" align="left" valign="top">DB_ENV->mutex_stat_print() </td> 142 <td width="20%" align="center"> 143 <a accesskey="h" href="index.html">Home</a> 144 </td> 145 <td width="40%" align="right" valign="top"> Chapter 10. 146 Replication Methods 147 </td> 148 </tr> 149 </table> 150 </div> 151 </body> 152</html> 153