1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>MySQL++ Reference Manual</title>
<meta http-equiv="Content-type" content="text/html;charset=iso-8859-1">
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="refman.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- Generated by Doxygen 1.4.7 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li id="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul></div>
<div class="nav">
<b>mysqlpp</b>::<a class="el" href="classmysqlpp_1_1ScopedLock.html">ScopedLock</a></div>
<h1>mysqlpp::ScopedLock Class Reference</h1><!-- doxytag: class="mysqlpp::ScopedLock" -->Wrapper around <a class="el" href="classmysqlpp_1_1BeecryptMutex.html">BeecryptMutex</a> to add scope-bound locking and unlocking.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="beemutex_8h-source.html">beemutex.h</a>></code>
<p>
Collaboration diagram for mysqlpp::ScopedLock:<p><center><img src="classmysqlpp_1_1ScopedLock__coll__graph.png" border="0" usemap="#mysqlpp_1_1ScopedLock__coll__map" alt="Collaboration graph"></center>
<map name="mysqlpp_1_1ScopedLock__coll__map">
<area href="classmysqlpp_1_1BeecryptMutex.html" shape="rect" coords="5,7,192,31" alt="">
</map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classmysqlpp_1_1ScopedLock-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="0684decf81a6915e06297ff0fec218e9"></a><!-- doxytag: member="mysqlpp::ScopedLock::ScopedLock" ref="0684decf81a6915e06297ff0fec218e9" args="(BeecryptMutex &mutex)" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ScopedLock.html#0684decf81a6915e06297ff0fec218e9">ScopedLock</a> (<a class="el" href="classmysqlpp_1_1BeecryptMutex.html">BeecryptMutex</a> &mutex)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Lock the mutex. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1f03bd9ff85a61bef0255c6f313f3099"></a><!-- doxytag: member="mysqlpp::ScopedLock::~ScopedLock" ref="1f03bd9ff85a61bef0255c6f313f3099" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ScopedLock.html#1f03bd9ff85a61bef0255c6f313f3099">~ScopedLock</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Unlock the mutex. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Wrapper around <a class="el" href="classmysqlpp_1_1BeecryptMutex.html">BeecryptMutex</a> to add scope-bound locking and unlocking.
<p>
This allows code to lock a mutex and ensure it will unlock on exit from the enclosing scope even in the face of exceptions. This is separate from <a class="el" href="classmysqlpp_1_1BeecryptMutex.html">BeecryptMutex</a> because we don't want to make this behavior mandatory.
<p>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="beemutex_8h-source.html">beemutex.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Feb 29 16:26:20 2008 for MySQL++ by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.7 </small></address>
</body>
</html>
|