internal DB_LOCK lock_get(uint locker, uint flags, DBT arg2, db_lockmode_t mode) { int err = 0; DB_LOCK ret = lock_get(locker, flags, DatabaseEntry.fromDBT(arg2), mode, ref err); DatabaseException.ThrowException(err); return(ret); }
internal int lock_put(DB_LOCK lck) { int ret; ret = libdb_csharpPINVOKE.DB_ENV_lock_put(swigCPtr, DB_LOCK.getCPtr(lck)); DatabaseException.ThrowException(ret); return(ret); }
private DB_LOCK lock_get(uint locker, uint flags, DatabaseEntry arg2, db_lockmode_t mode, ref int err) { try { DB_LOCK ret = new DB_LOCK(libdb_csharpPINVOKE.DB_ENV_lock_get(swigCPtr, locker, flags, DBT.getCPtr(DatabaseEntry.getDBT(arg2)), (int)mode, ref err), true); return(ret); } finally { GC.KeepAlive(arg2); } }
internal static HandleRef getCPtr(DB_LOCK obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }
internal Lock(DB_LOCK lck) { dblock = lck; }
internal int lock_put(DB_LOCK lck) { int ret; ret = libdb_csharpPINVOKE.DB_ENV_lock_put(swigCPtr, DB_LOCK.getCPtr(lck)); DatabaseException.ThrowException(ret); return ret; }
private DB_LOCK lock_get(uint locker, uint flags, DatabaseEntry arg2, db_lockmode_t mode, ref int err) { try { DB_LOCK ret = new DB_LOCK(libdb_csharpPINVOKE.DB_ENV_lock_get(swigCPtr, locker, flags, DBT.getCPtr(DatabaseEntry.getDBT(arg2)), (int)mode, ref err), true); return ret; } finally { GC.KeepAlive(arg2); } }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(DB_LOCK obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
internal static HandleRef getCPtr(DB_LOCK obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }