Example #1
0
        // Used for testing
        internal virtual GBPTreeLock Copy()
        {
            GBPTreeLock copy = new GBPTreeLock();

            copy._state = _state;
            return(copy);
        }
Example #2
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void assertLU() throws Exception
        private void AssertLU()
        {
            AssertThrow(@lock.cleanerUnlock);
            AssertThrow(@lock.writerAndCleanerUnlock);
            _copy = @lock.Copy();
            AssertBlock(_copy.writerLock, _copy.writerUnlock);
        }
Example #3
0
 /// <param name="crashGenerationCleaner"> <seealso cref="CrashGenerationCleaner"/> to use for cleaning. </param>
 /// <param name="gbpTreeLock"> <seealso cref="GBPTreeLock"/> to be released when job has either successfully finished or failed. </param>
 /// <param name="monitor"> <seealso cref="GBPTree.Monitor"/> to report to </param>
 /// <param name="indexFile"> Target file </param>
 internal GBPTreeCleanupJob(CrashGenerationCleaner crashGenerationCleaner, GBPTreeLock gbpTreeLock, GBPTree.Monitor monitor, File indexFile)
 {
     this._crashGenerationCleaner = crashGenerationCleaner;
     this._gbpTreeLock            = gbpTreeLock;
     this._monitor   = monitor;
     this._indexFile = indexFile;
     this._needed    = true;
 }
Example #4
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void assertLL() throws Exception
        private void AssertLL()
        {
            _copy = @lock.Copy();
            AssertBlock(_copy.writerLock, _copy.writerUnlock);
            _copy = @lock.Copy();
            AssertBlock(_copy.cleanerLock, _copy.cleanerUnlock);
            _copy = @lock.Copy();
            AssertBlock(_copy.writerAndCleanerLock, _copy.writerAndCleanerUnlock);
        }