示例#1
0
        private Stream GetView(int threadId)
        {
            MapViewStream s;

            if (!_inUse.TryGetValue(threadId, out s))
            {
                MapViewStream mvs = _map.MapAsStream();
                lock (_lockObject)
                {
                    _inUse.Add(threadId, mvs);
                }
                return(mvs);
            }
            return(s);
        }
示例#2
0
 public void Flush(MapViewStream mappedViewStream)
 {
     Flush(mappedViewStream.ViewBaseAddr);
 }
示例#3
0
 public void UnMapView(MapViewStream mappedViewStream)
 {
     UnMapView(mappedViewStream.ViewBaseAddr);
 }