Lucene.Net.Store.Lock.Obtain C# (CSharp) Метод

Obtain() публичный абстрактный Метод

Attempts to obtain exclusive access and immediately return upon success or failure. Use #close to release the lock.
public abstract Obtain ( ) : bool
Результат bool
        public abstract bool Obtain();

Same methods

Lock::Obtain ( long lockWaitTimeout ) : bool

Usage Example

 public override bool Obtain(long lockWaitTimeout)
 {
     lock (this)
     {
         bool obtained = lock_Renamed.Obtain(lockWaitTimeout);
         if (obtained)
         {
             Verify((sbyte)1);
         }
         return(obtained);
     }
 }
All Usage Examples Of Lucene.Net.Store.Lock::Obtain