예제 #1
0
 public ThreadSafeFasterList(FasterList <T> list)
 {
     if (list == null)
     {
         throw new ArgumentException("invalid list");
     }
     _list  = list;
     _lockQ = ReaderWriterLockSlimEx.Create();
 }
예제 #2
0
 public ThreadSafeFasterList()
 {
     _list  = new FasterList <T>();
     _lockQ = ReaderWriterLockSlimEx.Create();
 }
 public ThreadSafeValues(ReaderWriterLockSlimEx lockQ, FasterDictionary <TKey, TValue> dic) : this()
 {
     lockQ.EnterReadLock();
     _lockQ = lockQ;
     _dic   = dic;
 }