Exemple #1
0
 internal void link(LRU node)
 {
     node.next = next;
     node.prev = this;
     next.prev = node;
     next = node;
 }
Exemple #2
0
 internal void link(LRU node)
 {
     node.next = next;
     node.prev = this;
     next.prev = node;
     next      = node;
 }
Exemple #3
0
 internal void close()
 {
     lock (this)
     {
         file.Close();
         hashTable = null;
         dirtyPages = null;
         lru = null;
         freePages = null;
     }
 }
Exemple #4
0
 internal void close()
 {
     lock (this)
     {
         file.Close();
         hashTable  = null;
         dirtyPages = null;
         lru        = null;
         freePages  = null;
     }
 }
Exemple #5
0
        internal void open(IFile f)
        {
            file        = f;
            hashTable   = new Page[poolSize];
            dirtyPages  = new Page[poolSize];
            nDirtyPages = 0;
            lru         = new LRU();
            freePages   = null;
            if (autoExtended)
            {
                return;
            }

            for (int i = poolSize; --i >= 0;)
            {
                Page pg = new Page();
                pg.next   = freePages;
                freePages = pg;
            }
        }
Exemple #6
0
 internal LRU()
 {
     next = prev = this;
 }
Exemple #7
0
        internal void open(IFile f)
        {
            file = f;
            hashTable = new Page[poolSize];
            dirtyPages = new Page[poolSize];
            nDirtyPages = 0;
            lru = new LRU();
            freePages = null;
            if (autoExtended)
                return;

            for (int i = poolSize; --i >= 0; )
            {
                Page pg = new Page();
                pg.next = freePages;
                freePages = pg;
            }
        }
Exemple #8
0
 internal LRU()
 {
     next = prev = this;
 }