• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/db-4.8.30/docs/api_reference/C/
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_TXN-&gt;id()</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="txn.html" title="Chapter��12.�� The DB_TXN Handle" />
11    <link rel="prev" href="txnget_name.html" title="DB_TXN-&gt;get_name()" />
12    <link rel="next" href="txnprepare.html" title="DB_TXN-&gt;prepare()" />
13  </head>
14  <body>
15    <div class="navheader">
16      <table width="100%" summary="Navigation header">
17        <tr>
18          <th colspan="3" align="center">DB_TXN-&gt;id()</th>
19        </tr>
20        <tr>
21          <td width="20%" align="left"><a accesskey="p" href="txnget_name.html">Prev</a>��</td>
22          <th width="60%" align="center">Chapter��12.��
23                The DB_TXN Handle 
24        </th>
25          <td width="20%" align="right">��<a accesskey="n" href="txnprepare.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="txnid"></a>DB_TXN-&gt;id()</h2>
35          </div>
36        </div>
37      </div>
38      <pre class="programlisting">#include &lt;db.h&gt;
39
40u_int32_t
41DB_TXN-&gt;id(DB_TXN *tid);  </pre>
42      <p>
43         The <code class="methodname">DB_TXN-&gt;id()</code> method returns the unique transaction id associated
44         with the specified transaction.  Locking calls made on behalf of this
45         transaction should use the value returned from <code class="methodname">DB_TXN-&gt;id()</code> as the
46         locker parameter to the <a class="xref" href="lockget.html" title="DB_ENV-&gt;lock_get()">DB_ENV-&gt;lock_get()</a>  
47         or <a class="xref" href="lockvec.html" title="DB_ENV-&gt;lock_vec()">DB_ENV-&gt;lock_vec()</a>  calls.
48    </p>
49      <div class="sect2" lang="en" xml:lang="en">
50        <div class="titlepage">
51          <div>
52            <div>
53              <h3 class="title"><a id="id1709305"></a>Class</h3>
54            </div>
55          </div>
56        </div>
57        <p>
58                 <a class="link" href="env.html" title="Chapter��5.�� The DB_ENV Handle">DB_ENV</a>, <a class="link" href="txn.html" title="Chapter��12.�� The DB_TXN Handle">DB_TXN</a> 
59            </p>
60      </div>
61      <div class="sect2" lang="en" xml:lang="en">
62        <div class="titlepage">
63          <div>
64            <div>
65              <h3 class="title"><a id="id1709637"></a>See Also</h3>
66            </div>
67          </div>
68        </div>
69        <p>
70                     <a class="xref" href="txn.html#txnlist" title="Transaction Subsystem and Related Methods">Transaction Subsystem and Related Methods</a> 
71                </p>
72      </div>
73    </div>
74    <div class="navfooter">
75      <hr />
76      <table width="100%" summary="Navigation footer">
77        <tr>
78          <td width="40%" align="left"><a accesskey="p" href="txnget_name.html">Prev</a>��</td>
79          <td width="20%" align="center">
80            <a accesskey="u" href="txn.html">Up</a>
81          </td>
82          <td width="40%" align="right">��<a accesskey="n" href="txnprepare.html">Next</a></td>
83        </tr>
84        <tr>
85          <td width="40%" align="left" valign="top">DB_TXN-&gt;get_name()��</td>
86          <td width="20%" align="center">
87            <a accesskey="h" href="index.html">Home</a>
88          </td>
89          <td width="40%" align="right" valign="top">��DB_TXN-&gt;prepare()</td>
90        </tr>
91      </table>
92    </div>
93  </body>
94</html>
95