File: classmysqlpp_1_1ScopedLock.html

package info (click to toggle)
mysql%2B%2B 3.2.2%2Bpristine-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 15,724 kB
  • ctags: 10,567
  • sloc: cpp: 35,668; sh: 3,683; makefile: 846; perl: 786
file content (69 lines) | stat: -rwxr-xr-x 4,372 bytes parent folder | download
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
58
59
60
61
62
63
64
65
66
67
68
69
<!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">
</head>
<body>
<!-- Generated by Doxygen 1.8.5 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>mysqlpp</b></li><li class="navelem"><a class="el" href="classmysqlpp_1_1ScopedLock.html">ScopedLock</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classmysqlpp_1_1ScopedLock-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">mysqlpp::ScopedLock Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Wrapper around <a class="el" href="classmysqlpp_1_1BeecryptMutex.html" title="Wrapper around platform-specific mutexes. ">BeecryptMutex</a> to add scope-bound locking and unlocking.  
 <a href="classmysqlpp_1_1ScopedLock.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="beemutex_8h_source.html">beemutex.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a0684decf81a6915e06297ff0fec218e9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0684decf81a6915e06297ff0fec218e9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ScopedLock.html#a0684decf81a6915e06297ff0fec218e9">ScopedLock</a> (<a class="el" href="classmysqlpp_1_1BeecryptMutex.html">BeecryptMutex</a> &amp;mutex)</td></tr>
<tr class="memdesc:a0684decf81a6915e06297ff0fec218e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Lock the mutex. <br/></td></tr>
<tr class="separator:a0684decf81a6915e06297ff0fec218e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f03bd9ff85a61bef0255c6f313f3099"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1f03bd9ff85a61bef0255c6f313f3099"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmysqlpp_1_1ScopedLock.html#a1f03bd9ff85a61bef0255c6f313f3099">~ScopedLock</a> ()</td></tr>
<tr class="memdesc:a1f03bd9ff85a61bef0255c6f313f3099"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unlock the mutex. <br/></td></tr>
<tr class="separator:a1f03bd9ff85a61bef0255c6f313f3099"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Wrapper around <a class="el" href="classmysqlpp_1_1BeecryptMutex.html" title="Wrapper around platform-specific mutexes. ">BeecryptMutex</a> to add scope-bound locking and unlocking. </p>
<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" title="Wrapper around platform-specific mutexes. ">BeecryptMutex</a> because we don't want to make this behavior mandatory. </p>
</div><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></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Mar 18 2015 18:55:03 for MySQL++ by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>