Esempio n. 1
0
 public RepositoryCache()
 {
     cacheMap  = new ConcurrentHashMap <RepositoryCache.Key, Reference <Repository> >();
     openLocks = new RepositoryCache.Lock[4];
     for (int i = 0; i < openLocks.Length; i++)
     {
         openLocks[i] = new RepositoryCache.Lock();
     }
 }
Esempio n. 2
0
 public RepositoryCache()
 {
     cacheMap = new ConcurrentHashMap<RepositoryCache.Key, Reference<Repository>>();
     openLocks = new RepositoryCache.Lock[4];
     for (int i = 0; i < openLocks.Length; i++)
     {
         openLocks[i] = new RepositoryCache.Lock();
     }
 }