comparison Implab/Parallels/AsyncQueue.cs @ 129:471f596b2603 v2

Added SharedLock to synchronization routines
author cin
date Thu, 29 Jan 2015 18:31:06 +0300
parents 6241bff0cd64
children 671f60cd0250
comparison
equal deleted inserted replaced
128:6241bff0cd64 129:471f596b2603
493 } 493 }
494 494
495 #region ICollection implementation 495 #region ICollection implementation
496 496
497 public void Add(T item) { 497 public void Add(T item) {
498 throw new InvalidOperationException(); 498 throw new NotSupportedException();
499 } 499 }
500 500
501 public void Clear() { 501 public void Clear() {
502 throw new InvalidOperationException(); 502 throw new NotSupportedException();
503 } 503 }
504 504
505 public bool Contains(T item) { 505 public bool Contains(T item) {
506 return false; 506 return false;
507 } 507 }
509 public void CopyTo(T[] array, int arrayIndex) { 509 public void CopyTo(T[] array, int arrayIndex) {
510 Array.Copy(m_data,m_offset,array,arrayIndex, m_length); 510 Array.Copy(m_data,m_offset,array,arrayIndex, m_length);
511 } 511 }
512 512
513 public bool Remove(T item) { 513 public bool Remove(T item) {
514 throw new NotImplementedException(); 514 throw new NotSupportedException();
515 } 515 }
516 516
517 public int Count { 517 public int Count {
518 get { 518 get {
519 return m_length; 519 return m_length;