Debian Codegraph @

docs/api_reference/CXX/memptrickle.html

raw symbols SCIP
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>DbEnv::memp_trickle()</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="memp.html" title="Chapter 9.  The DbMpoolFile Handle" />
11 <link rel="prev" href="mempsync.html" title="DbEnv::memp_sync()" />
12 <link rel="next" href="envset_cache_max.html" title="DbEnv::set_cache_max()" />
13 </head>
14 <body>
15 <div xmlns="" class="navheader">
16 <div class="libver">
17 <p>Library Version 11.2.5.3</p>
18 </div>
19 <table width="100%" summary="Navigation header">
20 <tr>
21 <th colspan="3" align="center">DbEnv::memp_trickle()</th>
22 </tr>
23 <tr>
24 <td width="20%" align="left"><a accesskey="p" href="mempsync.html">Prev</a> </td>
25 <th width="60%" align="center">Chapter 9. 
26 The DbMpoolFile Handle
27 </th>
28 <td width="20%" align="right"> <a accesskey="n" href="envset_cache_max.html">Next</a></td>
29 </tr>
30 </table>
31 <hr />
32 </div>
33 <div class="sect1" lang="en" xml:lang="en">
34 <div class="titlepage">
35 <div>
36 <div>
37 <h2 class="title" style="clear: both"><a id="memptrickle"></a>DbEnv::memp_trickle()</h2>
38 </div>
39 </div>
40 </div>
41 <pre class="programlisting">#include &lt;db_cxx.h&gt;
42
43 int
44 DbEnv::memp_trickle(int percent, int *nwrotep);</pre>
45 <p>
46 The <code class="methodname">DbEnv::memp_trickle()</code> method ensures that a specified percent of
47 the pages in the cache are clean, by writing dirty pages
48 to their backing files.
49 </p>
50 <p>
51 The purpose of the <code class="methodname">DbEnv::memp_trickle()</code> function is to enable a
52 memory pool manager to ensure that a page is always available for
53 reading in new information without having to wait for a write.
54 </p>
55 <p>
56 The <code class="methodname">DbEnv::memp_trickle()</code> <span>
57
58 <span>
59 method either returns a non-zero error value or throws an
60 exception that encapsulates a non-zero error value on
61 failure, and returns 0 on success.
62 </span>
63 </span>
64 </p>
65 <div class="sect2" lang="en" xml:lang="en">
66 <div class="titlepage">
67 <div>
68 <div>
69 <h3 class="title"><a id="idp8725008"></a>Parameters</h3>
70 </div>
71 </div>
72 </div>
73 <div class="sect3" lang="en" xml:lang="en">
74 <div class="titlepage">
75 <div>
76 <div>
77 <h4 class="title"><a id="idp8743992"></a>percent</h4>
78 </div>
79 </div>
80 </div>
81 <p>
82 The <span class="bold"><strong>percent</strong></span> parameter is the percent
83 of the pages in the cache that should be clean.
84 </p>
85 </div>
86 <div class="sect3" lang="en" xml:lang="en">
87 <div class="titlepage">
88 <div>
89 <div>
90 <h4 class="title"><a id="idp8774312"></a>nwrotep</h4>
91 </div>
92 </div>
93 </div>
94 <p>
95 The <span class="bold"><strong>nwrotep</strong></span> parameter references
96 memory into which the number of pages written to reach the specified
97 percentage is copied.
98 </p>
99 </div>
100 </div>
101 <div class="sect2" lang="en" xml:lang="en">
102 <div class="titlepage">
103 <div>
104 <div>
105 <h3 class="title"><a id="idp8758008"></a>Errors</h3>
106 </div>
107 </div>
108 </div>
109 <p>
110 The <code class="methodname">DbEnv::memp_trickle()</code> <span>
111
112 <span>
113 method may fail and throw a <a class="link" href="dbexception.html" title="Chapter 6. The DbException Class">DbException</a>
114 exception, encapsulating one of the following non-zero errors, or return one
115 of the following non-zero errors:
116 </span>
117 </span>
118 following non-zero errors:
119 </p>
120 <div class="sect3" lang="en" xml:lang="en">
121 <div class="titlepage">
122 <div>
123 <div>
124 <h4 class="title"><a id="idp8780344"></a>EINVAL</h4>
125 </div>
126 </div>
127 </div>
128 <p>
129 An invalid flag value or parameter was specified.
130 </p>
131 </div>
132 </div>
133 <div class="sect2" lang="en" xml:lang="en">
134 <div class="titlepage">
135 <div>
136 <div>
137 <h3 class="title"><a id="idp8778368"></a>Class</h3>
138 </div>
139 </div>
140 </div>
141 <p>
142 <a class="link" href="env.html" title="Chapter 5.  The DbEnv Handle">DbEnv</a>, <a class="link" href="memp.html" title="Chapter 9.  The DbMpoolFile Handle">DbMpoolFile</a>
143 </p>
144 </div>
145 <div class="sect2" lang="en" xml:lang="en">
146 <div class="titlepage">
147 <div>
148 <div>
149 <h3 class="title"><a id="idp8769752"></a>See Also</h3>
150 </div>
151 </div>
152 </div>
153 <p>
154 <a class="xref" href="memp.html#memplist" title="Memory Pools and Related Methods">Memory Pools and Related Methods</a>
155 </p>
156 </div>
157 </div>
158 <div class="navfooter">
159 <hr />
160 <table width="100%" summary="Navigation footer">
161 <tr>
162 <td width="40%" align="left"><a accesskey="p" href="mempsync.html">Prev</a> </td>
163 <td width="20%" align="center">
164 <a accesskey="u" href="memp.html">Up</a>
165 </td>
166 <td width="40%" align="right"> <a accesskey="n" href="envset_cache_max.html">Next</a></td>
167 </tr>
168 <tr>
169 <td width="40%" align="left" valign="top">DbEnv::memp_sync() </td>
170 <td width="20%" align="center">
171 <a accesskey="h" href="index.html">Home</a>
172 </td>
173 <td width="40%" align="right" valign="top"> DbEnv::set_cache_max()</td>
174 </tr>
175 </table>
176 </div>
177 </body>
178 </html>