• 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/java/src/com/sleepycat/db/internal/
1/* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.40
4 *
5 * Do not make changes to this file unless you know what you are doing--modify
6 * the SWIG interface file instead.
7 * ----------------------------------------------------------------------------- */
8
9package com.sleepycat.db.internal;
10
11import com.sleepycat.db.*;
12import java.util.Comparator;
13
14public class DbLock {
15  private long swigCPtr;
16  protected boolean swigCMemOwn;
17
18  protected DbLock(long cPtr, boolean cMemoryOwn) {
19    swigCMemOwn = cMemoryOwn;
20    swigCPtr = cPtr;
21  }
22
23  protected static long getCPtr(DbLock obj) {
24    return (obj == null) ? 0 : obj.swigCPtr;
25  }
26
27  protected void finalize() {
28    try {
29      delete();
30    } catch(Exception e) {
31      System.err.println("Exception during finalization: " + e);
32      e.printStackTrace(System.err);
33    }
34  }
35
36  /* package */ synchronized void delete() {
37    if (swigCPtr != 0) {
38      if (swigCMemOwn) {
39        swigCMemOwn = false;
40        db_javaJNI.delete_DbLock(swigCPtr);
41      }
42      swigCPtr = 0;
43    }
44  }
45
46	public Lock wrapper;
47
48}
49