Exemplo n.º 1
0
 internal static DB_LOCKREQ get_DB_LOCKREQ(LockRequest req)
 {
     if (req != null)
     {
         return(req.lockreq);
     }
     return(null);
 }
Exemplo n.º 2
0
 private void LockMany(uint locker, bool wait, LockRequest[] vec)
 {
     LockMany(locker, wait, vec, null);
 }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
 internal static DB_LOCKREQ get_DB_LOCKREQ(LockRequest req)
 {
     if (req != null)
         return req.lockreq;
     return null;
 }