예제 #1
0
 // IEnumerable<TChank>
 public IEnumerator <TChank> GetEnumerator()
 {
     lock (_cursors)
     {
         var cursor = new HeapCursor <TChank>(this, _heap);
         _cursors.Add(cursor);
         return(cursor);
     }
 }
예제 #2
0
 internal void NotifyCursorRemove(HeapCursor <TChank> cursor)
 {
     lock (_cursors)
         _cursors.Remove(cursor);
 }