Пример #1
0
        void *GetPage(ref uint pageNo, DB_TXN *txp, CachePageGetFlags flags)
        {
            DbRetVal ret;
            void *   page;

            lock (rscLock) {
                DB_MPOOLFILE *mpf = CheckDisposed();
                ret = mpf->Get(mpf, ref pageNo, txp, flags, out page);
            }
            Util.CheckRetVal(ret);
            return(page);
        }
Пример #2
0
 IntPtr GetPage(ref uint pageNo, Txn txn, CachePageGetFlags flags)
 {
     if (txn != null)
     {
         lock (txn.rscLock) {
             DB_TXN *txp = txn.CheckDisposed();
             return((IntPtr)GetPage(ref pageNo, txp, flags));
         }
     }
     else
     {
         return((IntPtr)GetPage(ref pageNo, (DB_TXN *)null, flags));
     }
 }
Пример #3
0
 IntPtr GetPage(ref uint pageNo, Txn txn, CachePageGetFlags flags) {
   if (txn != null) {
     lock (txn.rscLock) {
       DB_TXN* txp = txn.CheckDisposed();
       return (IntPtr)GetPage(ref pageNo, txp, flags);
     }
   }
   else
     return (IntPtr)GetPage(ref pageNo, (DB_TXN*)null, flags);
 }
Пример #4
0
 void* GetPage(ref uint pageNo, DB_TXN* txp, CachePageGetFlags flags) {
   DbRetVal ret;
   void* page;
   lock (rscLock) {
     DB_MPOOLFILE* mpf = CheckDisposed();
     ret = mpf->Get(mpf, ref pageNo, txp, flags, out page);
   }
   Util.CheckRetVal(ret);
   return page;
 }