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); }
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)); } }
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); }
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; }