internal static DB_LOCKREQ get_DB_LOCKREQ(LockRequest req) { if (req != null) { return(req.lockreq); } return(null); }
private void LockMany(uint locker, bool wait, LockRequest[] vec) { LockMany(locker, wait, vec, null); }
private void LockMany( uint locker, bool wait, LockRequest[] vec, LockRequest failedReq) { IntPtr[] reqList = new IntPtr[vec.Length]; DB_LOCKREQ[] lst = new DB_LOCKREQ[vec.Length]; for (int i = 0; i < vec.Length; i++) { reqList[i] = DB_LOCKREQ.getCPtr( LockRequest.get_DB_LOCKREQ(vec[i])).Handle; lst[i] = LockRequest.get_DB_LOCKREQ(vec[i]); } dbenv.lock_vec(locker, wait ? 0 : DbConstants.DB_TXN_NOWAIT, reqList, vec.Length, LockRequest.get_DB_LOCKREQ(failedReq)); }
internal static DB_LOCKREQ get_DB_LOCKREQ(LockRequest req) { if (req != null) return req.lockreq; return null; }