Esempio n. 1
0
        private void Add(string path, int hashCode, TinyView view)
        {
            HashedViews views;
            lock (_cachedViews)
            {
                if (!_cachedViews.TryGetValue(path, out views))
                {
                    views = new HashedViews();
                    _cachedViews.Add(path, views);
                }
            }

            views.Add(hashCode, view);
        }
Esempio n. 2
0
 public void Add(int hashCode, TinyView hashedView)
 {
     lock (_hashedViews)
         _hashedViews[hashCode] = hashedView;
 }