private Lock GetLock(
     uint locker, bool wait, DatabaseEntry obj, LockMode mode)
 {
     return new Lock(dbenv.lock_get(locker,
         wait ? 0 : DbConstants.DB_LOCK_NOWAIT,
         obj, LockMode.GetMode(mode)));
 }
Beispiel #2
0
 internal static db_lockmode_t GetMode(LockMode lm)
 {
     return lm.mode;
 }
Beispiel #3
0
 static internal db_lockmode_t GetMode(LockMode lm)
 {
     return(lm.mode);
 }